GetActorBleeding
How fast an actor is bleeding, in health per second.
A cut opens a wound by the players’ rules (SetBleedRules): each bleeds on its own for the rules’ seconds and they add
up; 0 = not bleeding. A bleed-out is the last attacker’s kill (OnActorDeath); HealActor stops it.
Syntax
Section titled “Syntax”GetActorBleeding(id)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
Returns
Section titled “Returns”number - health lost per second; 0 = not bleeding
Example
Section titled “Example”if GetActorBleeding(id) > 0.5 then HealActor(id) end -- the demo character never bleeds outSee also
Section titled “See also”IsActorBleeding · SetActorBleeding · HealActor · GetActorHealth · the NPC actors group of the index
