SetPlayerBlood
Sets a player’s blood at one body zone or all of them - on their skin, their clothes or one piece.
As SetPlayerDirt, for the blood. zone "all" sets every zone.
Syntax
Section titled “Syntax”SetPlayerBlood(pid, zone, value [, part])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
zone |
string|number | "head", "torso", "arm_left", "arm_right", "leg_left", "leg_right" (or a BODY_PART_* number), or "all" |
value |
number | 0 .. 1 |
part |
string | as SetPlayerDirt’s - "all" by default (optional) |
Returns
Section titled “Returns”boolean | false, string - as SetPlayerDirt’s, and "unknown zone"
Example
Section titled “Example”-- a butcher's apron after the daySetPlayerBlood(pid, "torso", 0.9, "clothes")SetPlayerBlood(pid, "arm_left", 0.5, "skin")SetPlayerBlood(pid, "arm_right", 0.5, "skin")See also
Section titled “See also”SetPlayerDirt · WashPlayer · GetPlayerBlood · the Dirt and blood group of the index
