[HELP] Applying Animation - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Applying Animation (
/showthread.php?tid=254433)
[HELP] Applying Animation -
Alvord - 10.05.2011
Deleted.
Re: [HELP] Applying Animation -
SkizzoTrick - 10.05.2011
Quote:
Originally Posted by Alvord
Hi everyone,
I need some help on my script regarding the hospital system. I'm trying to make the player use the sleeping animation whenever he or she is in the hospital, trying to recover. But it seems that my code isn't working. I would appreciate any help for this.
Here's my code:
Код:
SetPlayerPos(playerid, 1144.6577, -1322.6154, 7.5959);
SetPlayerCameraPos(playerid, 1147.7, -1324.7, 8.0);
SetPlayerCameraLookAt(playerid, 1145.3610,-1322.6697,7.9801);
SetPlayerVirtualWorld(playerid, randworld);
ClearAnimations(playerid);
ApplyAnimation(playerid, "CRACK","crckidle2", 1, 1, 0, 0, 0, 0, 1);
Thanks!
|
Yea,that happened to me too.
Try to set a timer,it could be reseted by another function your using so just set a timer for ...hmm,3 seconds..
Re: [HELP] Applying Animation -
lowrida018 - 10.05.2011
Did you do everything right in the script?
Re: [HELP] Applying Animation -
SkizzoTrick - 10.05.2011
Quote:
Originally Posted by lowrida018
Did you do everything right in the script?
|
He just shown his script...
Re: [HELP] Applying Animation -
Alvord - 10.05.2011
Quote:
Originally Posted by lowrida018
Did you do everything right in the script?
|
I don't have any errors nor warnings when I compile and run the script.
Re: [HELP] Applying Animation - Max_Coldheart - 10.05.2011
Maybe Some Other callback resets it?
Re: [HELP] Applying Animation -
Alvord - 10.05.2011
Deleted.
Re: [HELP] Applying Animation -
coole210 - 10.05.2011
Hmm, you didn't even set an interior..
Re: [HELP] Applying Animation -
SkizzoTrick - 10.05.2011
Quote:
Originally Posted by Alvord
But that's why I added "ClearAnimations()" so the player wouldn't have any animation.
|
I just told you in the first post to try to set a timer.
Btw,you didn't understood.Another callback could reset it.Maybe your using another Spawn Callback or something,idk.Just try to set a timer.
Where did you placed your code?After OnPlayerSpawn?
Re: [HELP] Applying Animation -
Alvord - 10.05.2011
Deleted.