SetPlayerStamina
Sets the player’s stamina.
Clamped to 0 .. max. A swing thrown with less stamina than it costs lands weakly - a mode may tire a player on purpose.
Syntax
Section titled “Syntax”SetPlayerStamina(pid, stamina)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
stamina |
number | the new stamina |
Returns
Section titled “Returns”boolean - false when not connected
Example
Section titled “Example”-- both duelists start freshSetPlayerStamina(a, GetPlayerMaxStamina(a))SetPlayerStamina(b, GetPlayerMaxStamina(b))See also
Section titled “See also”GetPlayerStamina · HealPlayer · the Vitals, stats and skills group of the index
