onvehicledeath water
#1

i use print message

OnVehicleDeath()

isnt called when vehicle enters water....

bug ?
Reply
#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
#3

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
Reply
#4

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.
Reply
#5

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)
Reply
#6

badonkadonk
Reply
#7

bu,mp
Reply
#8

HOW MAN HOW
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)