onvehicledeath 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)
+--- Thread: onvehicledeath water (
/showthread.php?tid=311737)
onvehicledeath water -
jamesbond007 - 18.01.2012
i use print message
OnVehicleDeath()
isnt called when vehicle enters water....
bug ?
Re: onvehicledeath water -
Tannz0rz - 18.01.2012
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.
Re: onvehicledeath water -
jamesbond007 - 18.01.2012
this is what it says on the wiki...
Note: This callback will also be called when a vehicle enters water
it works.. but only 10% percent of the time
Re: onvehicledeath water -
Tannz0rz - 18.01.2012
Quote:
Originally Posted by jamesbond007
this is what it says on the wiki...
Note: This callback will also be called when a vehicle enters water
it works.. but only 10% percent of the time
|
Oh derp, I oftentimes overread things.
Re: onvehicledeath water -
jamesbond007 - 18.01.2012
hurp derp... so .. is this a bug ?? why doesnt it always work for me ? doesnt matter how i fall/enter the water ( tested in a sandking)
Re: onvehicledeath water -
jamesbond007 - 20.01.2012
badonkadonk
Re: onvehicledeath water -
jamesbond007 - 21.01.2012
bu,mp
Re: onvehicledeath water -
jamesbond007 - 03.02.2012
HOW MAN HOW