Personal tools

Lua/Server/Vehicle/Functions/SetHealth

From JC2-MP Documentation

< Lua‎ | Server‎ | Vehicle
Jump to: navigation, search

Returns    none
Prototype    Vehicle:SetHealth(number)
Description    No description


Description

Sets a vehicle's health. The range is from 0 to 1.

Notes

  • Setting a vehicle's health to 1 removes any smoke and broken wheels.
  • Vehicles start flaming at 0.2 health.