Animation
#1

I've 2 problems. When I want to apply an animation to a player with a command, it does nothing, but when I use the command for a second time, then it works. Is this a bug?

Command:
Код:
CMD:taze(playerid, params[])
{
    ApplyAnimation(playerid,"CRACK","crckdeth2",4.1,1,1,1,1,1,1);
    return 1;
}
And my second problem is: ClearAnimations(playerid); isn't stopping my animation, it just keeps doing the animation.

Sorry for my bad english.
Reply
#2

Make sure you preload the animations on player connect.
Reply
#3

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Make sure you preload the animations on player connect.
Thanks that worked, but now the other problem. I can't stop the animation.
Reply
#4

Sometimes an animation requires an ending animation to stop the animation, in other situations a simple ClearAnimations() works.
Reply
#5

Try to add these in your /stopanim command.
pawn Код:
ClearAnimations(playerid);
StopLoopingAnimation(playerid);
Reply
#6

Quote:
Originally Posted by Benzke
Посмотреть сообщение
Try to add these in your /stopanim command.
pawn Код:
ClearAnimations(playerid);
StopLoopingAnimation(playerid);
error 017: undefined symbol "StopLoopingAnimation"

Is there a stock for this or something because I can't find it.
Reply
#7

pawn Код:
StopLoopingAnimation(playerid)
{
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
}
Here.
Reply
#8

Check when they enter the secondary attack key, if they do it and an animation is playing clear the animations.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)