ApplyAnimation on OnPlayerRequestClass
#1

How do i do if i want every skin to have the same animation on OnPlayerRequestClass
Код:
	if(GetPlayerSkin(playerid) == 188)
This just works one one skin ID i want something that toggles all skins on the animation.
Reply
#2

Post your OnPlayerRequestClass callback.
Reply
#3

Код:
public OnPlayerRequestClass(playerid, classid)
{
	PlayerPlaySound (playerid, 1183, 0, 0, 0);
	SetPlayerPos(playerid, 2103.9080,1285.1174,10.8203);
	SetPlayerCameraPos(playerid, 2110.9810,1285.0741,10.8203);
	SetPlayerCameraLookAt(playerid, 2103.9080,1285.1174,10.8203);
	if(GetPlayerSkin(playerid) == 0>)
	ApplyAnimation (playerid, "ON_LOOKERS", "Wave_loop", 1, 1, 1, 1, 0, 0);
	return 1;
}
Reply
#4

Hello? I need to get this script done very soon so i can send it to a guy.
Reply
#5

Just put it somewhere without any if statement before
So the animation is always played when OnPlayerRequestClass is called
Reply
#6

Yes but then the first skin doesnt make any animation, i have to trigger it by changing skin and then it starts.
And also, why does my character face to north instead of east in class selection when i do F4 and then /kill?
Reply
#7

i can tell you how to fix but im to lazy atm to do that
Reply
#8

Mhmm ok.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)