Avoid Reckless driving
#3

There are many ways to do this. Some people might use OnVehicleDamageStatusUpdate which is called whenever the vehicle has a VISUAL damage applied to it. Then you can use GetVehicleHealth to determine how hard the vehicle hit the wall.

Another method is to combine a timer with GetVehicleHealth so you can take an appropriate damage from all passengers in the vehicle when the vehicle receives damage. Hitting a wall at a very high speed might take about 400-500 vehicle health. So you would probably apply 10% or 20% damage to the passengers.

And ignore the above poster, he has no idea what he's talking about.
Reply


Messages In This Thread
Avoid Reckless driving - by Lidor124 - 17.05.2014, 10:59
Re: Avoid Reckless driving - by Rittik - 17.05.2014, 11:05
Re: Avoid Reckless driving - by Threshold - 17.05.2014, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)