SA-MP Forums Archive
Walking styles please help please - 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: Walking styles please help please (/showthread.php?tid=353772)



Walking styles please help please - Euan Hughes - 24.06.2012

So i have done the walking styles so when a player walks a animation will be played so its a walking style.

My problem is how can i get it so when your doing a walking animation you can still aim with a desert eagle and move while aiming because right now it stops you to aim

Please help

pawn Code:
if (HOLDING(KEY_WALK))
    {
        if(Player[playerid][UsingGangWalkOne] == 1)
        {
            ApplyAnimation(playerid, "PED", "WALK_gang1", 4.0, 1, 1, 1, 1, 1);
        }
        if(Player[playerid][UsingGangWalkTwo] == 1)
        {
            ApplyAnimation(playerid, "PED", "WALK_gang2", 4.0, 1, 1, 1, 1, 1);
        }
        if(Player[playerid][UsingMuscleWalk] == 1)
        {
            ApplyAnimation(playerid, "MUSCULAR", "MuscleWalk", 4.0, 1, 1, 1, 1, 1);
        }
        if(Player[playerid][UsingSneakyWalk] == 1)
        {
            ApplyAnimation(playerid, "PED", "Player_Sneak", 4.0, 1, 1, 1, 1, 1);
        }
    }
    else if (RELEASED(KEY_WALK))
    {
        ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
    }
If you need any more code just ask

Thanks


Re: Walking styles please help please - Grand_Micha - 24.06.2012

Obviously, you cannot aim without interrupting this animation. Sorry, pal. (Only if you change the walking style natively.)


Re: Walking styles please help please - Euan Hughes - 24.06.2012

Quote:
Originally Posted by Grand_Micha
View Post
Obviously, you cannot aim without interrupting this animation. Sorry, pal. (Only if you change the walking style natively.)
Would changing that be hard ? I know some other server that can aim while being in that animation

Thanks


Re: Walking styles please help please - Grand_Micha - 24.06.2012

UsePlayerPedAnims(); <- delete this line

I think there were some other new native functions, but I forgot.


Re: Walking styles please help please - Euan Hughes - 24.06.2012

Quote:
Originally Posted by Grand_Micha
View Post
UsePlayerPedAnims(); <- delete this line

I think there were some other new native functions, but I forgot.
Never had that line what others can you think of buddy ?

Thanks