{"name":"combatPace","title":"combatPace","type":"command","url":"https://community.bistudio.com/wiki/combatPace","revid":378225,"updated":"2026-03-15T12:52:32Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"2.22"},"since":"arma3 2.22","arma3_since":"2.22","locality":{"argument":"local"},"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.","syntaxes":[{"syntax":"soldier combatPace [enable, duration]","params":[{"name":"soldier","type":"Object","description":"The local player unit.","type_expr":"Object"},{"name":"enable","type":"Boolean","optional":true,"description":"Whether to enable or disable combat pace. This param is optional, i.e. the right-hand array can be completely empty (see #Example 1).","type_expr":"Boolean","text":"enable: Boolean - (Optional, no default) Whether to enable or disable combat pace. This param is optional, i.e. the right-hand array can be completely empty (see #Example 1)."},{"name":"duration","type":"Scalar","optional":true,"default":"-1","description":"Duration of combat pace in seconds (maximum 5 seconds). If duration < 0, combat pace will be toggled. If duration >= 0, short combat pace will be used. duration == 0 means use the default short combat pace duration in config, similar to when the player presses the fire button and weapon is raised. Note that the combat pace modes are mutually exclusive (enabling one disables the other)","type_expr":"Scalar","text":"duration: Scalar - (Optional, default -1) Duration of combat pace in seconds (maximum 5 seconds). If duration < 0, combat pace will be toggled. If duration >= 0, short combat pace will be used. duration == 0 means use the default short combat pace duration in config, similar to when the player presses the fire button and weapon is raised. Note that the combat pace modes are mutually exclusive (enabling one disables the other)"}],"returns":{"type":"String","type_expr":"String","description":"previous combat pace. Possible values: \"None\", \"Timer\", \"Toggle\""},"form":"binary","left":{"text":"soldier"},"right":{"text":"[enable, duration]"}}],"examples":[{"code":["private _isCombatPaceToggled = player combatPace [] == \"Toggle\"; // current combat pace is toggled"]},{"code":["private _isInCombatPace = player combatPace [] != \"None\"; // either using timer or toggled combat pace"]},{"code":["player combatPace [false]; // disables combat pace (both short and toggle)"]},{"code":["player combatPace [true]; // enables combat pace toggle and disables timer mode"]},{"code":["player combatPace [true, 1]; // disables combat pace toggle, enables timer mode for 1 second"]},{"code":["player combatPace [player combatPace [] != \"Toggle\"]; // toggle combat pace (enable<->disable)"]}],"see_also":["forceWalk","getSpeed","isWalking","isForcedWalk"]}