Player use parachute - 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: Player use parachute (
/showthread.php?tid=600222)
Player use parachute -
CSCripMa - 05.02.2016
Hi,
How to know when player use parachute i mean when i jump from mountain or building and when parachute expands.
Re: Player use parachute -
Rufio - 05.02.2016
I doubt it is possible, you could try to get the player's holding weapon and match it with parachute then you could get the player's key state for action key(lmb on my sa) but then again it'd be a terrible system and it would engage even if the player hits lmb while being on foot.
Re: Player use parachute -
Karan007 - 05.02.2016
You can check his animations.
Re: Player use parachute -
Gammix - 05.02.2016
Quote:
Originally Posted by Karan007
You can check his animations.
|
And velocity (
GetPlayerVelocity).
Re: Player use parachute -
amirm3hdi - 05.02.2016
Check player animation indexes,
If one of them matched the falling with parachute animation index,
Then player is falling with parachute...