combatMode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *I([a-z ])" to "$1 - i$2") |
||
Line 32: | Line 32: | ||
|s1= [[combatMode]] group | |s1= [[combatMode]] group | ||
|p1= group: [[Group]] or [[Object]] - | |p1= group: [[Group]] or [[Object]] - if the argument is unit [[Object]], unit's current group is used. | ||
|r1= [[String]] - one of: | |r1= [[String]] - one of: |
Revision as of 15:33, 8 November 2023
Description
- Description:
- Returns the combat mode of the given AI group. See setCombatMode for more information about combat modes.
- Groups:
- GroupsAI Behaviour
Syntax
- Syntax:
- combatMode group
- Parameters:
- group: Group or Object - if the argument is unit Object, unit's current group is used.
- Return Value:
- String - one of:
- "BLUE"
- "GREEN"
- "WHITE"
- "YELLOW"
- "RED"
- "ERROR"
Examples
- Example 1:
Additional Information
- See also:
- Combat Modes setCombatMode behaviour setBehaviour skill setSkill Arma 3 AI Skill setUnitCombatMode unitCombatMode setCombatBehaviour combatBehaviour
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
- Ceeeb
- In OFP v1.96, combatMode return value does not change when unit's combat mode is set with radio commands, i.e troops under the player's command.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Groups
- Command Group: AI Behaviour