animation locking
#1

Hi, how can I make it so that you can move around while talking?

pawn Код:
if(!IsPlayerInAnyVehicle(playerid) && isanim[playerid] == 0 && GetPlayerSpecialAction(playerid) !=  SPECIAL_ACTION_DUCK && ison911[playerid] != 1 && isoncall[playerid] == false && iscracked[playerid] == 0)
    {
        ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
        SetTimerEx("StopTalk", chat, false, "i", playerid);
    }
Excuse me if this a dumb question, im terribly tired
Reply
#2

pawn Код:
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
change to:

pawn Код:
ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 1, 1, 1, 1, 1, 1);
Reply
#3

pawn Код:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
loop - Set to 1 for looping otherwise set to 0 for playing animation sequence only once.
Hope this helps.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)