SA-MP Forums Archive
Car fire - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car fire (/showthread.php?tid=165100)



Car fire - baske007 - 03.08.2010

Hello everyone,

How can I detect that a car is going on fire? With GetVehicleHealth, or should I work with GetVehicleDamageStatus? And at what value the car is going on fire? I need it for my script.

Thanks

Bas


Re: Car fire - Vince - 03.08.2010

Timer would be your best bet. OnPlayerUpdate will work aswell, if you don't have much code to be executed.
Cars go on fire when their health is < 250.0.


Re: Car fire - Retardedwolf - 03.08.2010

OnVehicleDamageStatusUpdate - 249.0 HP.


Re: Car fire - baske007 - 03.08.2010

Thank you