IsActorInjured
Whether an actor has a wound - anywhere, or on one part.
Syntax
Section titled “Syntax”IsActorInjured(id [, part])| Parameter | Type | |
|---|---|---|
id |
number | the actor |
part |
number | a body part 1 .. 6; without it, any part (optional) |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if IsActorInjured(id, BODY_PART_ARM_RIGHT) then Log(GetEntityName(id), "swings weakly") endSee also
Section titled “See also”GetActorInjuries · IsActorBleeding · the NPC actors group of the index
