Posts: 7
Threads: 2
Joined: Aug 2011
Reputation:
0
Anyway to do this? I think I should check GetVehicleVelocity(vehicle,x,y,z); and see if it changes?
Posts: 48
Threads: 3
Joined: Jul 2011
Reputation:
0
You want to count how many times a player jumps off a jump(ramp) with a vehicle?
Posts: 6,129
Threads: 36
Joined: Jan 2009
You can use MapAndreas with a little math to detect the difference between the ground and the Z coordinate for the vehicle.
Posts: 6,129
Threads: 36
Joined: Jan 2009
@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.
Posts: 1,988
Threads: 17
Joined: Apr 2011
Reputation:
0
I though it's "Check if player is in air? A jump counter..."
Sorry for miss read.