Skip to content

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.

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 · HealActor · GetActorHealth · the NPC actors group of the index