SRL Archive - Help

Animation Help


Brandon

2011-03-10 20:10:57

KK here is the problem..

When getting player animation, if its an animation like the herblore one.. where the character animates, stops, animates again, stops.. and it keeps repeating..

so the animation changes from -1 to xx to -1 to xx to -1 to xx…

How do you check to make sure if its still animating..

Cuz when I do this it fails as soon as it stops animating the first time:


Repeat
wait(1000);
Until(Me.Animation = -1);

Heysus

2011-03-10 20:14:51

This is how I do it. It will break the loop if you don't animate for more than 2 seconds.



MarkTime(t);
While TimeFromMark(t) < 2000 do
begin
if (Me.Animation = xx) then
MarkTime(t);
Wait(50);
end;