Skip to content

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.

GetPlayerStamina(pid)
Parameter Type
pid number the player

number - 0 .. GetPlayerMaxStamina; -1 when not connected

if GetPlayerStamina(pid) < 20 then GameText(pid, "Catch your breath", 1000, GAMETEXT_LOWER) end

GetPlayerMaxStamina · SetPlayerStamina · the Vitals, stats and skills group of the index