SA-MP Forums Archive
A little question - 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: A little question (/showthread.php?tid=550612)



A little question - Iuri - 13.12.2014

Is there any way to set someone a special action like aiming? ( Holding the RMB )


Re: A little question - vyper - 13.12.2014

ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)


As for the specific animation, you could search samp's wiki.


Re: A little question - Abagail - 13.12.2014

I'd recommend using a robbery animation. Note; there is nothing like SPECIAL_ACTION_AIMING, or anything, how-ever aiming can be simulated using a robbery-type animation. Here are some animations that may help:

pawn Code:
ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 1, 1);
pawn Code:
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0, 1);
The first one as the name suggests is the animation of a cop aiming (at), and or arresting (the) player. In singleplayer, it is traditionally used when a cop busts a player thats inside a vehicle.


Re: A little question - Iuri - 13.12.2014

Quote:
Originally Posted by Abagail
View Post
I'd recommend using a robbery animation. Note; there is nothing like SPECIAL_ACTION_AIMING, or anything, how-ever aiming can be simulated using a robbery-type animation. Here are some animations that may help:

pawn Code:
ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 1, 1);
pawn Code:
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0, 1);
The first one as the name suggests is the animation of a cop aiming (at), and or arresting (the) player. In singleplayer, it is traditionally used when a cop busts a player thats inside a vehicle.
Can you set a player to aim if he doesn't press RMB?