Skip to content

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.

GetActorBleeding(id)
Parameter Type
id number the actor

number - health lost per second; 0 = not bleeding

if GetActorBleeding(id) > 0.5 then HealActor(id) end -- the demo character never bleeds out

IsActorBleeding · SetActorBleeding · HealActor · GetActorHealth · the NPC actors group of the index