SA-MP Forums Archive
How to check if a player is running with anim... - 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: How to check if a player is running with anim... (/showthread.php?tid=376912)



How to check if a player is running with anim... - Siralos - 12.09.2012

Hi!

I have developed an energy system, and I need to check if player is using sitting, laying, running, basket or walking animations, but GetPlayerAnim is not retrieve the animation currently applied.
Do you know if there is an easy way to check the current animation of a player?

Thanks!


Re: How to check if a player is running with anim... - Roach_ - 12.09.2012

Try with this one.


Respuesta: How to check if a player is running with anim... - Siralos - 12.09.2012

Thanks, but GetPlayerAnimationIndex is only valid at moment the animation is called, not while the animation is running


Respuesta: How to check if a player is running with anim... - Siralos - 12.09.2012

bump, please


Respuesta: How to check if a player is running with anim... - Siralos - 12.09.2012

Nobody knows how to check if player is using an anim?
GetPlayerAnimationIndex is only called once when the ApplyAnimation is executed