GetActorHealth
An actor’s health.
Syntax
Section titled “Syntax”GetActorHealth(id)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
Returns
Section titled “Returns”number - 0 .. 100; 0 for anything but an actor
Example
Section titled “Example”SendClientMessage(pid, COLOUR_SERVER, GetEntityName(id) .. ": " .. GetActorHealth(id) .. " health")See also
Section titled “See also”SetActorHealth · IsActorDead · OnActorDamage · the NPC actors group of the index
