[HELP] Applying Animation
#1

Deleted.
Reply
#2

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..
Reply
#3

Did you do everything right in the script?
Reply
#4

Quote:
Originally Posted by lowrida018
Посмотреть сообщение
Did you do everything right in the script?
He just shown his script...
Reply
#5

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.
Reply
#6

Maybe Some Other callback resets it?
Reply
#7

Deleted.
Reply
#8

Hmm, you didn't even set an interior..
Reply
#9

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?
Reply
#10

Deleted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)