Freezing ApplyAnimation -
blanic - 11.06.2016
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.1, 0, 0, 0, 1, 1);
SetTimerEx("StopAnimation",2500, false, "i", playerid);
public StopAnimation(playerid)
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 0, 0, 1, 1);
return 1;
}
Re: Freezing ApplyAnimation -
F1N4L - 11.06.2016
Код:
public StopAnimation(playerid)
{
ClearAnimations(playerid);
return 1;
}
Re: Freezing ApplyAnimation -
blanic - 11.06.2016
It's not working yet
Re: Freezing ApplyAnimation -
Alpay0098 - 11.06.2016
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
Re: Freezing ApplyAnimation -
blanic - 11.06.2016
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
Re: Freezing ApplyAnimation -
Dayrion - 11.06.2016
Try this :
PHP код:
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 0, 0, 0, 1, 1);
Re: Freezing ApplyAnimation -
blanic - 11.06.2016
Quote:
Originally Posted by Dayrion
Try this :
PHP код:
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 0, 0, 0, 1, 1);
|
This doesn't do anything
Re: Freezing ApplyAnimation -
Dayrion - 11.06.2016
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.1, 0, 0, 0, 1, 1);
return 1;
}
Re: Freezing ApplyAnimation -
blanic - 11.06.2016
I use it on OnPlayerText
Re: Freezing ApplyAnimation -
blanic - 11.06.2016
My arms freeze after animation usage
Re: Freezing ApplyAnimation -
Dayrion - 12.06.2016
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.
Re: Freezing ApplyAnimation -
blanic - 12.06.2016
This is the full code, I don't know why it's not working; arms freeze after animation and I have to jump