animation problem - 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: animation problem (
/showthread.php?tid=655294)
animation problem -
None1337 - 17.06.2018
I'm trying to set an animation to a player, but it stops very fast.
How can I fix this?
Код:
ApplyAnimation(playerid, "PED", "Gun_2_IDLE", 4.1, 0, 0, 0, 0, 0);
Video:
https://www.youtube.com/watch?v=nSQ6VaF9tKA
Re: animation problem -
taktaz - 17.06.2018
You should try this:
PHP код:
ApplyAnimation(playerid, "PED", "Gun_2_IDLE", 4.1, 0, 0, 0, 1, 0);
Or if you want play it for X seconds:
PHP код:
ApplyAnimation(playerid, "PED", "Gun_2_IDLE", 4.1, 0, 0, 0, 0, X*1000);
Note: dude , dont forget rep
Re: animation problem -
None1337 - 17.06.2018
Quote:
Originally Posted by taktaz
You should try this:
PHP код:
ApplyAnimation(playerid, "PED", "Gun_2_IDLE", 4.1, 0, 0, 0, 1, 0);
Or if you want play it for X seconds:
PHP код:
ApplyAnimation(playerid, "PED", "Gun_2_IDLE", 4.1, 0, 0, 0, 0, X*1000);
Note: dude , dont forget rep
|
I've tried this ApplyAnimation(playerid, "PED", "Gun_2_IDLE", 4.1, 0, 0, 0, 0, 5*1000);
But now is reloading the anim over and over and over again
video:
https://*********/thVXr7adpwM
Re: animation problem -
taktaz - 17.06.2018
Show me a few lines of your code where applyanimation is
Edit: also you can change its speed from 4.1 to 1.5 or less
Re: animation problem -
None1337 - 17.06.2018
Quote:
Originally Posted by taktaz
Show me a few lines of your code where applyanimation is
|
Код:
TogglePlayerControllable(playerid, false);
SetPlayerAttachedObject(playerid, 8, 18669, 6, -0.040000, 0.560000, -0.853000, 16.999996, -4.699997, 102.799980, 1.000000, 1.000000, 1.000000);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
ApplyAnimation(playerid, "PED", "Gun_2_IDLE", 4.1, 0, 0, 0, 0, 5*1000);
Re: animation problem -
taktaz - 17.06.2018
also you can change its speed from 4.1 to 1.5 or less
Re: animation problem -
None1337 - 17.06.2018
Quote:
Originally Posted by taktaz
also you can change its speed from 4.1 to 1.5 or less
|
Solved, thanks so much!