17.05.2014, 11:17
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.
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.