SA-MP Forums Archive
GetPlayerAnimationIndex - 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: GetPlayerAnimationIndex (/showthread.php?tid=618778)



GetPlayerAnimationIndex - MerryDeer - 09.10.2016

Hi,

When GetPlayerAnimationIndex return 0?


Re: GetPlayerAnimationIndex - azzerking - 09.10.2016

Because no animation was applied.

Wiki


Re: GetPlayerAnimationIndex - MerryDeer - 09.10.2016

YEs i know, but when is no animation?


Re: GetPlayerAnimationIndex - azzerking - 09.10.2016

You need to use ApplyAnimation first then you can use GetPlayerAnimationIndex.

Ofc this also works if the player is actually moving. If the player is running it will return something other then 0. same if the player is jumping, flying and falling.