03.07.2014, 18:07
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;
}

