SA-MP Forums Archive
OnVehicleDeath() isn't called when vehicle enters 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() isn't called when vehicle enters water (/showthread.php?tid=289156)



OnVehicleDeath() isn't called when vehicle enters water - Awesome™ - 10.10.2011

Hey guys.

I heard, the function is called when vehicle enters water, too.
So I tried it by myself. (Print & SendClientMessage)

But it isn't. :/ Why?


Re: OnVehicleDeath() isn't called when vehicle enters water - Dragony92 - 10.10.2011

https://sampwiki.blast.hk/wiki/OnVehicleDeath
Note: This callback will also be called when a vehicle enters water

Is it so hard to use ******?


Re: OnVehicleDeath() isn't called when vehicle enters water - hittt - 10.10.2011

LOL @ the misunderstanding..

Well, the vehicle needs to get partially submerged. It wont be called if it just touches the water.


Re: OnVehicleDeath() isn't called when vehicle enters water - jamesbond007 - 20.01.2012

yes this


Re: OnVehicleDeath() isn't called when vehicle enters water - cessil - 20.01.2012

try adding prints under OnVehicleSpawn and see if you can just script a work around that way


Re: OnVehicleDeath() isn't called when vehicle enters water - jamesbond007 - 20.01.2012

Quote:
Originally Posted by cessil
View Post
try adding prints under OnVehicleSpawn and see if you can just script a work around that way
What's OnVehicleSpawn got to do with this? i dont understand...