OnPlayerRequestClass Animations
#1

The code
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 485.4370,-14.0601,1000.6797);
    SetPlayerFacingAngle(playerid, 268.1323);
    SetPlayerInterior(playerid, 17);
    SetPlayerCameraPos(playerid, 487.5798,-14.2909,1000.6797);
    SetPlayerCameraLookAt(playerid, 485.4370,-14.0601,1000.6797);
    ApplyAnimation(playerid,"DANCING","dance_loop",4.1,1,0,0,0,0,1);
    return 1;
}
The problem:
The animation doesn't work

Any help would be appreciated
Reply
#2

Try using this.
pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
To stop it,
pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
Not sure why yours isnt working.
Reply
#3

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Try using this.
pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
To stop it,
pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
Not sure why yours isnt working.
Thank you very much,

The animation I was trying to use didn't work I tried another animation with your code it and worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)