onvehicledeath water
#2

https://sampwiki.blast.hk/wiki/OnVehicleDeath

Isn't overly-specific. I'm quite sure that OnVehicleDeath is only called when a vehicle explodes, not when it falls into the water.

If you wish to check if a vehicle is in the water, an easy and not-so-reliable solution is to check if it's Z position is < 0 ("sea level"). Of course this does not account for other bodies of water that aren't the oceans of San Andreas.
Reply


Messages In This Thread
onvehicledeath water - by jamesbond007 - 18.01.2012, 03:23
Re: onvehicledeath water - by Tannz0rz - 18.01.2012, 03:28
Re: onvehicledeath water - by jamesbond007 - 18.01.2012, 03:43
Re: onvehicledeath water - by Tannz0rz - 18.01.2012, 03:45
Re: onvehicledeath water - by jamesbond007 - 18.01.2012, 04:03
Re: onvehicledeath water - by jamesbond007 - 20.01.2012, 01:18
Re: onvehicledeath water - by jamesbond007 - 21.01.2012, 03:33
Re: onvehicledeath water - by jamesbond007 - 03.02.2012, 02:00

Forum Jump:


Users browsing this thread: 2 Guest(s)