Freezing ApplyAnimation
#1

I use this code to get animation and when it finishes player's arms get stuck, they freeze, why? How to solve?
I want player walking while he's running animation

PHP код:
ApplyAnimation(playerid"PED""IDLE_CHAT"4.100011);
    
SetTimerEx("StopAnimation",2500false"i"playerid);
public 
StopAnimation(playerid)
{
     
ApplyAnimation(playerid"PED""IDLE_CHAT"4.100011);
    return 
1;

Reply
#2

Код:
public StopAnimation(playerid) 
{ 
    ClearAnimations(playerid);
    return 1; 
}
Reply
#3

It's not working yet
Reply
#4

Are you sure there's not any looping timer that Clears players animations? (Some servers got something like that to prevent players' /sleep animation)

Find all ClearAnimations(playerid) or ClearAnimations(i) or x or y and ... to find out there's timer like that or not
Reply
#5

Quote:
Originally Posted by Alpay0098
Посмотреть сообщение
Are you sure there's not any looping timer that Clears players animations? (Some servers got something like that to prevent players' /sleep animation)

Find all ClearAnimations(playerid) or ClearAnimations(i) or x or y and ... to find out there's timer like that or not
This is the only existing timer in my gamemode
Reply
#6

Try this :
PHP код:
ApplyAnimation(playerid"PED""IDLE_CHAT"4.1000011); 
Reply
#7

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Try this :
PHP код:
ApplyAnimation(playerid"PED""IDLE_CHAT"4.1000011); 
This doesn't do anything
Reply
#8

Quote:
Originally Posted by blanic
Посмотреть сообщение
This doesn't do anything
This doesn't freeze me :
PHP код:
CMD:test4(playerid)
{
    
ApplyAnimation(playerid"PED""IDLE_CHAT"4.100011);
    return 
1;

Reply
#9

I use it on OnPlayerText
Reply
#10

My arms freeze after animation usage
Reply
#11

Show us the full code, I don't understand why it's working for me and not for you.

NB : STOP SENDING ME PM FOR ANSWER OR I'LL STOP TRYING TO HELP YOU.
Reply
#12

This is the full code, I don't know why it's not working; arms freeze after animation and I have to jump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)