Check if vehicle is in air? A jump counter...
#1

Anyway to do this? I think I should check GetVehicleVelocity(vehicle,x,y,z); and see if it changes?
Reply
#2

You want to count how many times a player jumps off a jump(ramp) with a vehicle?
Reply
#3

You can use MapAndreas with a little math to detect the difference between the ground and the Z coordinate for the vehicle.
Reply
#4

Quote:
Originally Posted by Godhimself
Посмотреть сообщение
You want to count how many times a player jumps off a jump(ramp) with a vehicle?
I want to count how high and for how long he stays in the air. And that MapAndreas thingy would work, but how to implement it?
Reply
#5

pawn Код:
GetPlayerAnimationIndex(playerid);
Reply
#6

@varthshenon Vehicles don't retain animation states...

Quote:
Originally Posted by Deltac0
Посмотреть сообщение
I want to count how high and for how long he stays in the air. And that MapAndreas thingy would work, but how to implement it?
Get the MapAndreas value and subtract the GetPlayerPos Z coordinate from it, see what the result is and determine if the value is too high or too low, like if 5000.0 is returned, then it'd be relatively obvious they're high up in the air.
Reply
#7

I though it's "Check if player is in air? A jump counter..."
Sorry for miss read.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)