SA-MP Forums Archive
How to apply an animation without freezing the player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to apply an animation without freezing the player (/showthread.php?tid=528868)



How to apply an animation without freezing the player - Beckett - 30.07.2014

Title says it all I think I've tried turning the freeze to 0 and didn't work I've also tried to unfreeze the player (TogglePlayerControllable) but it will erase the animation.


Thanks.


Re: How to apply an animation without freezing the player - Clad - 30.07.2014

It depends on the animation, What is it ?


Re: How to apply an animation without freezing the player - Beckett - 30.07.2014

IDLE_CHAT.


Re: How to apply an animation without freezing the player - SmithyComp - 30.07.2014

One ways of avoiding the freezing could be by making a sort of stop animation command that will clear all animations and "unfreeze" the player.


Re: How to apply an animation without freezing the player - iFarbod - 30.07.2014

Depends on Animation, if PED-IDLE_CHAT, It semi-freezes the player, look at .ifp files. ( can be browsed with tools from gtamodding.net)


Re: How to apply an animation without freezing the player - Beckett - 30.07.2014

I meant script-wisely not through my files, I've seen in some servers you can crouch/move while you're doing that animation.

Quote:
Originally Posted by SmithyComp
Посмотреть сообщение
One ways of avoiding the freezing could be by making a sort of stop animation command that will clear all animations and "unfreeze" the player.
I didn't ask how to unfreeze him after that animation is over my question is that he can move by pressing W and crouching while doing that animation.


Re: How to apply an animation without freezing the player - Beckett - 30.07.2014

------


Re: How to apply an animation without freezing the player - Dignity - 30.07.2014

Try putting it to -1 instead of 0.


edit: Use a timer to reset animations. ClearAnimations(playerid); didn't work for me, at all, so I came up with this:

pawn Код:
forward EndAnim(playerid);
public EndAnim(playerid) return SetPlayerSkin(playerid, GetPlayerSkin(playerid));
(you can do the same with TogglePlayerControllable)


Re: How to apply an animation without freezing the player - Beckett - 30.07.2014

------


Re: How to apply an animation without freezing the player - Beckett - 30.07.2014

------