combatPace: Difference between revisions
No edit summary |
mNo edit summary |
||
| Line 14: | Line 14: | ||
|p1= soldier: [[Object]] - The local player unit. | |p1= soldier: [[Object]] - The local player unit. | ||
|p2= enable: [[Boolean]] - (Optional, no default) Whether to enable or disable combat pace. | |p2= enable: [[Boolean]] - (Optional, no default) Whether to enable or disable combat pace. | ||
|p3= 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. Note that the combat pace modes are mutually exclusive (enabling one disables the other) | |p3= 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) | ||
|r1= [[String]] - previous combat pace. Possible values: "None", "Timer", "Toggle" | |r1= [[String]] - previous combat pace. Possible values: "None", "Timer", "Toggle" | ||
Revision as of 19:51, 14 March 2026
Description
- 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.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- soldier combatPace [enable, duration]
- Parameters:
- soldier: Object - The local player unit.
- enable: Boolean - (Optional, no default) Whether to enable or disable combat pace.
- 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)
- Return Value:
- String - previous combat pace. Possible values: "None", "Timer", "Toggle"
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
- Example 5:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note