SA-MP Forums Archive
Player not moving in water. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player not moving in water. (/showthread.php?tid=527211)



Player not moving in water. - Banditukas - 21.07.2014

Hi,

I want to ask.

Now am get player velocity.

GetPlayerVelocity( ... );

And i check if x and y is == 0 then player is not moving. But when player is in water, not swimming i see that just player z coordinate change + -, but still i get that player is moving. Then how to check in other way?


Re: Player not moving in water. - Virtual1ty - 21.07.2014

Add in a separate check to check if player is playing an animation "standing still" in water. Then if he is - mark him as not moving.