Is it possible to detect when two vehicles collide?
#8

Quote:
Originally Posted by juice.j
Quote:

when someone shoots the car, it loses health, but the driver caused the damge. cant be real.
i tried to do an accurate solution, but i am stuck at this too.

Ehm yeah, whatever then.


When two vehicles collide they must be very close to each other. Check the range of distances between two vehicles when they are directly next to each other by doing some tests.

As soon as a two vehicles crash into each other you just check upon OnVehicleDamageStatusUpdate whether a vehicle is in direct contact. To improve inappropriate triggers you can additionally check for damages on the possibly detected nearby vehicle, connect it to timestamps or whatsoever.
You could even make an array for every vehicle / have the distance custom for every vehicle (dumper and a faggio shouldnt have thew same range). Its a lot of work, but it would make it more accurate.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)