object.health

Type: Number

This accessor holds the object's current health. A value of 100 represents 100% health.

This accessor supports read and write access.

Example

for each player do
global.number[0] = current_player.biped.health
if global.number[0] <= 50 then
current_player.biped.health *= 2
end
end

See also