GetActorInjuries
An actor’s wounded body parts.
A list of body parts, BODY_PART_HEAD .. BODY_PART_LEG_RIGHT (1 .. 6); {} when whole. A blow of at least
[combat] injury_threshold wounds the part it struck (OnActorInjury).
Syntax
Section titled “Syntax”GetActorInjuries(id)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
Returns
Section titled “Returns”table - a list of body part ids
Example
Section titled “Example”for _, part in ipairs(GetActorInjuries(id)) do Log(GetEntityName(id), "wounded:", GetBodyPartName(part)) endSee also
Section titled “See also”IsActorInjured · GetBodyPartName · OnActorInjury · HealActor · the NPC actors group of the index
