SA-MP Forums Archive
Moving forward via punch isn't synced. - 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: Moving forward via punch isn't synced. (/showthread.php?tid=324837)



Moving forward via punch isn't synced. - Lorenc_ - 11.03.2012

Punching to make yourself move forward doesn't sync your position with GetPlayerPos, please fix it!


Re: Moving forward via punch isn't synced. - MP2 - 11.03.2012

It would be to do with GTA:SA's animation system. Your character is still in the same spot theoretically, while the animation animates him forward and doesn't set his position until it is over. Is it really an issue?


AW: Moving forward via punch isn't synced. - Meta - 11.03.2012

If you punch the air a hundred times and get somewhere you shouldn't get to, yes


Re: Moving forward via punch isn't synced. - Jochemd - 11.03.2012

That's weird, because this works fine for me.


Re: Moving forward via punch isn't synced. - Lorenc_ - 11.03.2012

1. Set a camera's pos at your position and make it look 2.0 units infront.
2. start punching and watch no movement of the camera.

What Mike(MP2) said is probably true.


Re: Moving forward via punch isn't synced. - MP2 - 13.03.2012

Also noticed that if you punch while surfing an object you don't move forward.


Re: Moving forward via punch isn't synced. - Kalcor - 13.03.2012

The player's position is a base position for the animation, not a particular point on the player's model.