SA-MP Forums Archive
Persistent animation: SetPlayerPos - 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: Persistent animation: SetPlayerPos (/showthread.php?tid=596613)



Persistent animation: SetPlayerPos - Spmn - 20.12.2015

Hello!

I was trying implement 8ball game from singleplayer into SA-MP and I ran into this problem: when player is moved around the table using SetPlayerPos(), animation applied by ApplyAnimation() is cleared and I have to reapply it, but this way it looks very choppy. Is there any other method to change player's position without clearing current animation?

ApplyAnimation() parameters:
Код:
ApplyAnimation(p, "POOL", "POOL_Long_Start", 4.1, 0, 1, 1, 1, 0, 1);



Re: Persistent animation: SetPlayerPos - Spmn - 21.12.2015

I think it is possible to change player pos by using SetPlayerVelocity() so his animation won't be cleared, but I've got no idea how to do it.