Talk:ApplyAnimation
From SA-MP Wiki
Why is this function still in the "Needs Documentation" Category when it clearly has enough documentation.
--[Fackin']Luke 05:20, 7 January 2008 (CET)
I don't know the format you use for including Scripting Ressources pages so I added the link nearly to the top.
Contents |
last parameter is not a timer
"Timer in millisecconds. For a never ending loop it should be 0."
Did anyone ever test this? I did, and it has a totally other effect.
it is
Well ive tested it and it is.
From my GM:
ApplyAnimation(playerid,"PLAYIDLES","time",4.1,0,1,1,0,5200);
if i set "5200" to say "1000" it stops the animation after a second.
other effect!
And did you test the other effect?
No? Then why did you delete it?
update
Now i testet both effects.
Indeed, the last parameter is a timer, but it has no effect, if you set the loop parameter to 1.
When using an non looped animation like
ApplyAnimation(playerid,"Ped","handsup",3.0,0,1,1,1,5000);
it will freeze the player for 5 seconds but the animation won't stop.
And if you set the parameter to 0, it's not an never ending loop!
-1 is a never ending loop.
Mike:
It does have an effect because i tested it 5 times with 1000 2000 3000 4000 and 5000 parameters and the anim stopped after 1 2 3 4 and 5 seconds.
Cypog:
Me to, and it hasn't. Maybe you didn't understand me. It has an effect, if the loop parameter is set to 0 und you are using an looped animation like the player idle animation. But it has not, if you set the loop parameter to 1.