SA-MP Forums Archive
Actor problem with hands - 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: Actor problem with hands (/showthread.php?tid=591765)



Actor problem with hands - bigboy81 - 16.10.2015

When i aiming to Actor, actor hands goes up, but when i don't aiming actor hands not goes down.
When i shoot near actor or in center of actor hands goes down.

I never had this problem before..

PHP код:
new playerTargetActor = GetPlayerCameraTargetActor(playerid);
    if(
playerTargetActor == Actor1)
    {
        new 
playerWeapon = GetPlayerWeapon(playerid);
        new 
keys, updown, leftright;
        
GetPlayerKeys(playerid, keys, updown, leftright);
        if(!
ActorHandsup[playerTargetActor] && playerWeapon >= 22 && playerWeapon <= 42 && keys & KEY_HANDBRAKE)
        {
            
ActorHandsup[playerTargetActor] = true;
            
ApplyActorAnimation(playerTargetActor, "SHOP", "SHP_HandsUp_Scr",4.1,0,0,0,1,0); 
        }
        else if(
ActorHandsup[playerTargetActor] && playerWeapon >= 22 && playerWeapon <= 42 && keys != KEY_HANDBRAKE)
        {
            
ActorHandsup[playerTargetActor] = false;
            
ApplyActorAnimation(playerTargetActor, "MISC","seat_lr",2.0,1,0,0,0,0);
        }
    } 



Re: Actor problem with hands - bigboy81 - 17.10.2015

Bump