Question.
#1

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.
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)