You are here: start » scripts » disable_stamina

Menu

Table of Contents

Disable Stamina

Stamina can be disabled on any unit using the enableStamina command. However, disabling stamina on players is slightly different.

Script

initPlayerLocal.sqf
// Disable stamina for player at mission start
player enableStamina false;
onPlayerRespawn.sqf
// Disable stamina for player at respawn
player enableStamina false;

Explanation

While enableStamina can be used on a player's unit, it will not persist after respawn. In addition, it is laborious to repeat the command for every possible unit controllable by players. Script below resolves this.

initPlayerLocal.sqf and onPlayerRespawn.sqf are files that contains commands exclusive for each player. On every player's computer, these commands will run at mission start then each time they respawn.

Back to top