PDA

View Full Version : onvehicledeath water


jamesbond007
18/01/2012, 04:23 AM
i use print message

OnVehicleDeath()

isnt called when vehicle enters water....

bug ?

Tannz0rz
18/01/2012, 04:28 AM
http://wiki.sa-mp.com/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.

jamesbond007
18/01/2012, 04:43 AM
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

Tannz0rz
18/01/2012, 04:45 AM
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.

jamesbond007
18/01/2012, 05:03 AM
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)

jamesbond007
20/01/2012, 02:18 AM
badonkadonk

jamesbond007
21/01/2012, 04:33 AM
bu,mp

jamesbond007
03/02/2012, 03:00 AM
HOW MAN HOW