Carry animation not working
#1

I can't get the carry animation working, someone knows how to fix it?

Код:
public MinerTimer(playerid)
{
	RemovePlayerAttachedObject(playerid, 3);
	SendClientMessage(playerid, -1, "{00FF00}Average {FFFFFF}metal produced. Take it to the refinery.");
	
	SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE); // 1st to clear all special actions
	SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY); // 2nd to make Carry animation on
	ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
	if ( GetPlayerSpecialAction( playerid ) != SPECIAL_ACTION_CARRY ) { // Still not carrying, try to remove this check if still not working
	    SetTimerEx("carry", 200, false, "i", playerid); // A timer to set carry animation
	}

//	SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
	
	
	SetPlayerAttachedObject(playerid, 4, 2936, 1, 0.184699, 0.426247, 0.000000, 259.531341, 80.949592, 0.000000, 0.476124, 0.468181, 0.470769);
	SetPlayerCheckpoint(playerid, -1866.611328, -1609.435546, 21.757812, 3.0);
	ExtraMetall[playerid] = 0;

return 1;
}

forward carry(playerid);
public carry(playerid)
{ 
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);
return 1;
}
Reply
#2

I have similar problem, my NPC doesn't play any animation.

PHP код:
if(IsPlayerNPC(playerid))
    {
        new 
npcname[MAX_PLAYER_NAME];
        if(!
strcmp(npcname"Jess_Parker"true))
        {
            new 
Text3D:Jess Create3DTextLabel(""grey"[NPC]:\n"white"Jess_Parker\nDanceuse"COLOR_WHITE30.040.050.040.00);
            
Attach3DTextLabelToPlayer(Jessplayerid0.00.0, -0.3);
            
ApplyAnimation(playerid"DANCING""bd_clap1"4.1111111);
            
SetPlayerSkin(playerid93);
          }
    } 
I try to make animation when i record, i have try OnPlayerStreamIn, and any solution..
I am in front of a wall
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)