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: Question. (
/showthread.php?tid=590564)
Question. -
Gangster-rocks - 01.10.2015
Is it possible to detect if the player have landed after jumping or even detect the height their jump was before landing?
It's not a priorty of yours, but I'm curious on the subject which how can this be done. I'll appreciate any help, thanks for your time guys.
Re: Question. -
jihadmeneer - 01.10.2015
You've got 3 axis in SA-MP, x, y, and z the z axis is the one which measures heights, if you run a timer for like 1 second and the z axis is dropping rapidly, you know they are falling, you can even check the anims to see wether they landed or not.
PARACHUTE
Код:
FALL_skyDive
FALL_SkyDive_Accel
FALL_skyDive_DIE
FALL_SkyDive_L
FALL_SkyDive_R
PARA_decel
PARA_decel_O
PARA_float
PARA_float_O
PARA_Land
PARA_Land_O
PARA_Land_Water
PARA_Land_Water_O
PARA_open
PARA_open_O
PARA_Rip_Land_O
PARA_Rip_Loop_O
PARA_Rip_O
PARA_steerL
PARA_steerL_O
PARA_steerR
PARA_steerR_O