SA-MP Forums Archive
freeze in anim - 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: freeze in anim (/showthread.php?tid=602298)



freeze in anim - GeneralAref - 05.03.2016

player is not freeze in animation. how can i fix it?
PHP код:
ApplyAnimation(playerid,"RIFLE","RIFLE_load",4.1,0,1,1,1,4,1); 



Re: freeze in anim - MicroKyrr - 05.03.2016

What do you mean?

Freeze the player when applying animation?


Re: freeze in anim - GeneralAref - 05.03.2016

yeah.


Re: freeze in anim - Amit1998 - 05.03.2016

use TogglePlayerControllable


Re: freeze in anim - GeneralAref - 05.03.2016

in TogglePlayerControllable animation not work.


Re: freeze in anim - MicroKyrr - 05.03.2016

Your faster than me



Re: freeze in anim - MicroKyrr - 05.03.2016

Your freeze parameter works fine :/


Re: freeze in anim - MeCom - 05.03.2016

https://sampwiki.blast.hk/wiki/ApplyAnimation

Код:
freeze	Setting this to 1 will freeze the player at the end of the animation. 0 will not.
Код:
(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
change this:
Код:
ApplyAnimation(playerid,"RIFLE","RIFLE_load",4.1,0,1,1,1,4,1);
to this
Код:
ApplyAnimation(playerid,"RIFLE","RIFLE_load",4.1,0,1,1,0,4,1);



Re: freeze in anim - GeneralAref - 05.03.2016

i want freeze player!!!!!


Re: freeze in anim - xEF - 05.03.2016

You can't freeze the animation action, instead you can freeze the player that uses the animation, but the animation will finish or continue, it depends on the animation time & feature.

Regards.