Skip to content

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).

GetActorInjuries(id)
Parameter Type
id number the actor

table - a list of body part ids

for _, part in ipairs(GetActorInjuries(id)) do Log(GetEntityName(id), "wounded:", GetBodyPartName(part)) end

IsActorInjured · GetBodyPartName · OnActorInjury · HealActor · the NPC actors group of the index