SA-MP Forums Archive
Player froze and wont do 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: Player froze and wont do animation? (/showthread.php?tid=123394)



Player froze and wont do animation? - Torran - 25.01.2010

pawn Код:
GameTextForPlayer(playerid, "~g~Police LS", 1000, 1);
SetPlayerPos(playerid, 1583.355469, -1633.027100, 13.950139);
SetPlayerCameraPos(playerid, 1583.355469, -1629.799927, 13.950139);
SetPlayerCameraLookAt(playerid, 1583.355469, -1633.027100, 13.950139);
ApplyAnimation(playerid,"DANCING","DANCE_LOOP",4.1,1,1,1,1,1);
SetPlayerFacingAngle(playerid, 0);
Ive never used Animations on player classes,
So i bet its obvious that im doing something wrong xd




Re: Player froze and wont do animation? - Correlli - 25.01.2010

I don't think that animation will play while you're in air (like your character). And you should pre-load your animations before you use them - check Kye's animation filterscript to see what i mean (you can find it at the official sa:mp page at the download page -> server package).


Re: Player froze and wont do animation? - On_Top_Non_Stop - 25.01.2010

Are you using TogglePlayerControllable in your script to freeze the player just after connecting?

If your not you can try ApplyAnimation(playerid,"DANCING","DANCE_LOOP",4.1 ,1,1,1,0,0);


Re: Player froze and wont do animation? - Torran - 25.01.2010

Quote:
Originally Posted by Don Correlli
I don't think that animation will play while you're in air (like your character). And you should pre-load your animations before you use them - check Kye's animation filterscript to see what i mean (you can find it at the official sa:mp page at the download page -> server package).
Huh? I seen players dancing while selecting player class, How would i do that


Re: Player froze and wont do animation? - Facuarg - 25.01.2010

Quote:
Originally Posted by Torran
Quote:
Originally Posted by Don Correlli
I don't think that animation will play while you're in air (like your character). And you should pre-load your animations before you use them - check Kye's animation filterscript to see what i mean (you can find it at the official sa:mp page at the download page -> server package).
Huh? I seen players dancing while selecting player class, How would i do that
He says that you first have to insert the animation list. Just do what he says.


Re: Player froze and wont do animation? - Torran - 25.01.2010

I still no understand


Re: Player froze and wont do animation? - Correlli - 25.01.2010

Quote:
Originally Posted by Torran
Quote:
Originally Posted by Don Correlli
I don't think that animation will play while you're in air (like your character). And you should pre-load your animations before you use them - check Kye's animation filterscript to see what i mean (you can find it at the official sa:mp page at the download page -> server package).
Huh? I seen players dancing while selecting player class, How would i do that
Indeed, but not if they're in air like your character.


Re: Player froze and wont do animation? - Torran - 25.01.2010

Well how to make him not in air,
I just use coords from AddPlayerClass


Re: Player froze and wont do animation? - Torran - 25.01.2010

Ok, I changed Z Coord, And hes on ground, But he still no dancing


Re: Player froze and wont do animation? - Correlli - 25.01.2010

Quote:
Originally Posted by Don Correlli
And you should pre-load your animations before you use them - check Kye's animation filterscript to see what i mean (you can find it at the official sa:mp page at the download page -> server package).