OnVehicleDeath - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: OnVehicleDeath (
/showthread.php?tid=274616)
OnVehicleDeath -
Laronic - 06.08.2011
I belive that '
OnVehicleDeath' only get called if a player is inside the vehicle who 'die'
Here is a video if whet i mean:
[ame]http://www.youtube.com/watch?v=mhSGEDwxwls[/ame]
Re: OnVehicleDeath -
Huxley - 07.08.2011
I saw this bug myself in his server.A caddy exploded but didn't respawned.I don't have idea how to fix,leaving this to someone.
Re: OnVehicleDeath -
MadeMan - 07.08.2011
I think it will only be called if any player has been in it after it spawned.
Re: OnVehicleDeath -
Huxley - 07.08.2011
Yeah,like he said,it only respawn if the vehicle was entered by someone.
Re: OnVehicleDeath -
Laronic - 07.08.2011
Quote:
Originally Posted by MadeMan
I think it will only be called if any player has been in it after it spawned.
|
I also tried that, i entred the vehicle and drove few meters, then i exited and set the health to 100, but it still didnt get called ((I'm not sure, i gonna test it now again))
Maybe someone have other thoughts?
Edit:
MadeMan is right
Sets vehicle health to 0 ((Right after it has spawned and no players has entered it)): Not called
Sets vehicle health to 0 ((after someone has entered the vehicle)): Called