isSprintAllowed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (see also)
Line 16: Line 16:
|x1= <sqf>if (not isSprintAllowed player) then { hint "no running in the corridors!" };</sqf>
|x1= <sqf>if (not isSprintAllowed player) then { hint "no running in the corridors!" };</sqf>


|seealso= [[Arma 3: Stamina]]
|seealso= [[Arma 3: Stamina]] [[allowSprint]]
}}
}}

Revision as of 10:15, 24 June 2023

Hover & click on the images for description

Description

Description:
Returns true if player is allowed to sprint
Groups:
Stamina System

Syntax

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

Examples

Example 1:
if (not isSprintAllowed player) then { hint "no running in the corridors!" };

Additional Information

See also:
Arma 3: Stamina allowSprint

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