GetPlayerBleeding
How fast the player is bleeding, in health per second.
A stab or a slash opens a bleed for [combat] bleed_seconds; 0 means not bleeding. A bleed-out is a death by the last
attacker. A bandage stops it, so do HealPlayer and the respawn.
Syntax
Section titled “Syntax”GetPlayerBleeding(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - health lost per second; 0 = not bleeding
Example
Section titled “Example”if GetPlayerBleeding(pid) > 0.5 then GameText(pid, "You are bleeding heavily", 2000, GAMETEXT_LOWER) endSee also
Section titled “See also”IsPlayerBleeding · HealPlayer · the Vitals, stats and skills group of the index
