isStaminaEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Bool" to "Boolean")
m (Some wiki formatting)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- isStaminaEnabled from EXPORT -->
{{RV|type=command
{{Command|Comments=
 
|arma3|Game name=
|game1= arma3
|1.54|Game version=
|version1= 1.54
|arg= global|Multiplayer Arguments=
 
| Check if stamina depletion is enabled |DESCRIPTION=
|arg= global
| '''isStaminaEnabled''' unit; |SYNTAX=
 
|p1= unit: [[Object]] |PARAMETER1=
|gr1= Stamina System
| [[Boolean]] |RETURNVALUE=
 
|x1= <code>'''isStaminaEnabled''' player;
|descr= Check if stamina depletion is enabled.
</code>|EXAMPLE1=
 
| [[Arma 3 Stamina]] |SEEALSO=
|s1= [[isStaminaEnabled]] unit
|  |MPBEHAVIOUR=
 
}}
|p1= unit: [[Object]]


<h3 style='display:none'>Bottom Section</h3>
|r1= [[Boolean]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]


<h3 style='display:none'>Notes</h3>
|x1= <sqf>if (isStaminaEnabled player) then { hint "You can get exhausted." };</sqf>
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[Arma 3: Stamina]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 13:50, 22 May 2022

Hover & click on the images for description

Description

Description:
Check if stamina depletion is enabled.
Groups:
Stamina System

Syntax

Syntax:
isStaminaEnabled unit
Parameters:
unit: Object
Return Value:
Boolean

Examples

Example 1:
if (isStaminaEnabled player) then { hint "You can get exhausted." };

Additional Information

See also:
Arma 3: Stamina

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note