SA-MP Forums Archive
Vehicle death + water - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle death + water (/showthread.php?tid=169720)



Vehicle death + water - Cameltoe - 20.08.2010

i saw on the wiki that OnVehicleDeath get's called when vehicle hits water, is there a accurate way to check if the car died on the ground and not in the water?


Re: Vehicle death + water - CaHbKo - 20.08.2010

I guess that if a vehicle explodes on ground, it's HP <= 249.9. But in water >= 250.0, except times when the car explodes in water.


Re: Vehicle death + water - Cameltoe - 20.08.2010

Quote:
Originally Posted by CaHbKo
Посмотреть сообщение
I guess that if a vehicle explodes on ground, it's HP <= 249.9. But in water >= 250.0, except times when the car explodes in water.
Lol, why didnt i think of that x).. thx!

Well, nvm.. OnVehicleDeath get's called when the Vehicle actually drown or explode not when health is under 250.