{"name":"combatPace","operator":null,"title":"combatPace","type":"command","url":"https://community.bistudio.com/wiki/combatPace","revid":378225,"updated":"2026-03-15T12:52:32Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.22"}],"since":{"game":"arma3","name":"Arma 3","version":"2.22"},"arma3_since":"2.22","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"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]","since":null,"effect":null,"exec":null,"params":[{"name":"soldier","type":"Object","optional":false,"default":null,"description":"The local player unit.","types":["Object"],"since":null,"text":"soldier: Object - The local player unit."},{"name":"enable","type":"Boolean","optional":true,"default":null,"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).","types":["Boolean"],"since":null,"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)","types":["Scalar"],"since":null,"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","types":["String"],"description":"previous combat pace. Possible values: \"None\", \"Timer\", \"Toggle\"","text":"String - previous combat pace. Possible values: \"None\", \"Timer\", \"Toggle\""},"form":"binary","operator":null,"left":{"text":"soldier","types":["Object"]},"right":{"text":"[enable, duration]","types":["Array"]}}],"examples":[{"text":"```sqf\nprivate _isCombatPaceToggled = player combatPace [] == \"Toggle\"; // current combat pace is toggled\n```","code":["private _isCombatPaceToggled = player combatPace [] == \"Toggle\"; // current combat pace is toggled"]},{"text":"```sqf\nprivate _isInCombatPace = player combatPace [] != \"None\"; // either using timer or toggled combat pace\n```","code":["private _isInCombatPace = player combatPace [] != \"None\"; // either using timer or toggled combat pace"]},{"text":"```sqf\nplayer combatPace [false]; // disables combat pace (both short and toggle)\n```","code":["player combatPace [false]; // disables combat pace (both short and toggle)"]},{"text":"```sqf\nplayer combatPace [true]; // enables combat pace toggle and disables timer mode\n```","code":["player combatPace [true]; // enables combat pace toggle and disables timer mode"]},{"text":"```sqf\nplayer combatPace [true, 1]; // disables combat pace toggle, enables timer mode for 1 second\n```","code":["player combatPace [true, 1]; // disables combat pace toggle, enables timer mode for 1 second"]},{"text":"```sqf\nplayer combatPace [player combatPace [] != \"Toggle\"]; // toggle combat pace (enable<->disable)\n```","code":["player combatPace [player combatPace [] != \"Toggle\"]; // toggle combat pace (enable<->disable)"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["forceWalk","getSpeed","isWalking","isForcedWalk"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 2.22","Scripting Commands"]}