Arma 3 Scripting

Command in Object Manipulation

combatPace

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets or gets the combat pace for the local player. If the right-hand array is empty, the command will simply return the current combat pace mode without making any changes to combat pace.

Syntax

soldier combatPace [enable, duration]

Parameters:

Returns: String - previous combat pace. Possible values: "None", "Timer", "Toggle"

Examples

Example 1

private _isCombatPaceToggled = player combatPace [] == "Toggle"; // current combat pace is toggled

Example 2

private _isInCombatPace = player combatPace [] != "None"; // either using timer or toggled combat pace

Example 3

player combatPace [false]; // disables combat pace (both short and toggle)

Example 4

player combatPace [true]; // enables combat pace toggle and disables timer mode

Example 5

player combatPace [true, 1]; // disables combat pace toggle, enables timer mode for 1 second

Example 6

player combatPace [player combatPace [] != "Toggle"]; // toggle combat pace (enable<->disable)

See also

forceWalk · getSpeed · isWalking · isForcedWalk