SA-MP Forums Archive
Vehicles Health - 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: Vehicles Health (/showthread.php?tid=158215)



Vehicles Health - RichyB - 09.07.2010

Hello,

I was just wondering, is there any script or anything that can allow vehicles to be damaged without a player inside it?
And how can it be done if possible?


Re: Vehicles Health - cessil - 09.07.2010

nope unless they're upside down


Re: Vehicles Health - Grim_ - 09.07.2010

If you're talking about visual damage, yes. (Visual damage is the door being knocked off, etc.)

If you're talking about actual health of the car, it can only be changed without a player in it by setting its health.

Some references:
- https://sampwiki.blast.hk/wiki/GetVehicleDamageStatus
- https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus
- https://sampwiki.blast.hk/wiki/SetVehicleHealth