GetPlayerBleedingTime
How many more seconds the player bleeds.
The seconds until the last open wound stops by itself; 0 when not bleeding. With GetPlayerBleeding it is what
SetPlayerBleeding takes back - a mode that keeps a character’s wounds across sessions saves both
(SetPlayerInjuries has the whole recipe).
Syntax
Section titled “Syntax”GetPlayerBleedingTime(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - seconds; 0 = not bleeding
Example
Section titled “Example”local rate, seconds = GetPlayerBleeding(pid), GetPlayerBleedingTime(pid)if rate > 0 then SendClientMessage(pid, COLOR_RED, string.format("You will bleed for %d more seconds.", seconds)) endSee also
Section titled “See also”GetPlayerBleeding · SetPlayerBleeding · SetPlayerInjuries · the Vitals group of the index
