GetActorBleeding
How fast an actor is bleeding, in health per second.
A cut opens a bleed for [combat] bleed_seconds; 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 · HealActor · GetActorHealth · the NPC actors group of the index
