GetPlayerStamina
The player’s stamina - the bar they see.
Swings, hits taken, blocks, shots, sprints and jumps cost it; it regenerates after a pause (Combat). What the player sees on their stamina bar is this number.
Syntax
Section titled “Syntax”GetPlayerStamina(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - 0 .. GetPlayerMaxStamina; -1 when not connected
Example
Section titled “Example”if GetPlayerStamina(pid) < 20 then GameText(pid, "Catch your breath", 1000, GAMETEXT_LOWER) endSee also
Section titled “See also”GetPlayerMaxStamina · SetPlayerStamina · the Vitals, stats and skills group of the index
