animation locking - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: animation locking (
/showthread.php?tid=347434)
animation locking -
milanosie - 01.06.2012
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
Re: animation locking -
Riddick94 - 01.06.2012
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);
Re: animation locking -
The__ - 01.06.2012
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.