SA-MP Forums Archive
How to check if vehicle gets any damage? or veh health detect - 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: How to check if vehicle gets any damage? or veh health detect (/showthread.php?tid=513261)



How to check if vehicle gets any damage? or veh health detect - Mavis100 - 15.05.2014

or vehicle health reduce?
There have any public function?


Re: How to check if vehicle gets any damage? or veh health detect - dusk - 15.05.2014

There's no native way of doing that. OnVehicleDamageStatusUpdate exists, but it is only called when visual damage is done.

For vehicle health change you could use this: http://forum.sa-mp.com/showpost.php?...3&postcount=13


Re: How to check if vehicle gets any damage? or veh health detect - iZN - 15.05.2014

There isn't any callback related to vehicle health loss, but you can still make a timer to check. There is only damage status callback, OnVehicleDamageStatusUpdate


Re: How to check if vehicle gets any damage? or veh health detect - Mavis100 - 15.05.2014

Quote:
Originally Posted by dusk
Посмотреть сообщение
There's no native way of doing that. OnVehicleDamageStatusUpdate exists, but it is only called when visual damage is done.

For vehicle health change you could use this: http://forum.sa-mp.com/showpost.php?...3&postcount=13
Helped, thanks