SetPlayerInjured
Injures or heals one of the player’s body parts, leaving the others as they are.
SetPlayerInjuries for a single part: injured left out or true injures it, false heals it.
OnPlayerInjury is not called.
Syntax
Section titled “Syntax”SetPlayerInjured(pid, part [, injured])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
part |
number | a body part, 1 .. 6 |
injured |
boolean | false heals the part; left out = injured (optional) |
Returns
Section titled “Returns”boolean - false for a part that is no body part, or when the player is dead or not in the world
Example
Section titled “Example”-- a splint on the legSetPlayerInjured(pid, BODY_PART_LEG_LEFT, false)See also
Section titled “See also”SetPlayerInjuries · IsPlayerInjured · the Vitals group of the index
