Skip to content

SetActorBleeding

Sets how fast an actor bleeds, in place of its open wounds.

SetPlayerBleeding for an actor or an animal: one wound of rate health a second for seconds (left out = the rules’ seconds, SetBleedRules), capped by the rules’ maxRate; 0 stops the bleeding. A bleed-out is the last player’s kill who struck it. Refused on a corpse.

SetActorBleeding(id, rate [, seconds])
Parameter Type
id number the actor
rate number health lost per second; 0 stops the bleeding
seconds number how long it bleeds; left out = the rules’ seconds (optional)

boolean - false for a dead actor or anything but an actor

-- the wounded deer the hunters track
SetActorBleeding(deer, 0.2, 300)

GetActorBleeding · HealActor · SetBleedRules · the NPC actors group of the index