[Ask]About vehicles health
#1

Can we/scripter script a "Vehicle custom health" ? If yes,whats pawn code its use?Because i saw some SAMP roleplay server all health same include SWAT,rhino etc which make common sense.Maybe you guys can tell the "code" of it.

Thanks before
Reply
#2

I suggest setting vehicle health back to 1000 when it is below 500 for higher-end vehicles (like rhinos, SWAT vehicles) using a timer (only way I see it happening).
Reply
#3

SetVehicleHealth?
Reply
#4

Does the maximum vehicle health jsut 1000? Cannot be more?
Reply
#5

The default health for all vehicles is 1000, this is not the maximum you can set it to whatever you like using SetVehicleHealth. Increasing the value will simply mean it will be allowed to take more damage before it explodes.

Something that may also interest you is that different vehicles take different values of damage on collisions with objects or other vehicles however weapons do the same amount of damage to any vehicle, so a Rhino can be destroyed in the same amount of bullets it takes to destroy a Tractor.

(Note that all vehicles will catch on fire and explode at 250.0 health)


Hope this helps you out.


EDIT: You can also use the command "/DL" in-game which will show a 3D text on every vehicle stating various information about it including its current health, this may help you with debugging and troubleshooting when using the SetVehicleHealth function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)