combatMode: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| ofp \|1.00 +\|([^g])" to " | ofp |1.00 |game2= ofpe |version2= 1.00 |game3= arma1 |version3= 1.00 |game4= arma2 |version4= 1.00 |game5= arma2oa |version5= 1.50 |game6= tkoh |version6= 1.00 |game7= arma3 |version7= 0.50 |$1") |
BrettMayson (talk | contribs) mNo edit summary |
||
(22 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| ofp | |game1= ofp | ||
|1.00 | |version1= 1.00 | ||
|game2= ofpe | |game2= ofpe | ||
Line 26: | Line 26: | ||
|gr1= Groups | |gr1= Groups | ||
| | |gr2= AI Behaviour | ||
| [[ | |descr= Returns the combat mode of the given AI [[Group | group]]. See [[setCombatMode]] for more information about combat modes. | ||
| | |s1= [[combatMode]] group | ||
| [[ | |p1= group: One of | ||
* [[Group]] | |||
* [[Object]] of type [[Object|Unit]] - if the argument is unit [[Object]], unit's current group is used. | |||
| | |r1= [[String]] - one of: | ||
* "BLUE" | |||
* "GREEN" | |||
* "WHITE" | |||
* "YELLOW" | |||
* "RED" | |||
* "ERROR" | |||
|seealso= [[Combat Modes]] | |x1= <sqf>if (combatMode _grp1 == "BLUE") then {_grp1 setCombatMode "GREEN"};</sqf> | ||
|seealso= [[Combat Modes]] [[setCombatMode]] [[behaviour]] [[setBehaviour]] [[skill]] [[setSkill]] [[Arma 3: AI Skill]] [[setUnitCombatMode]] [[unitCombatMode]] [[setCombatBehaviour]] [[combatBehaviour]] | |||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt><dt> | <dt><dt> | ||
<dd class="notedate"> | <dd class="notedate"> | ||
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt> | <dt class="note">[[User:Ceeeb|Ceeeb]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
In '''OFP v1.96''', combatMode return value does not change when unit's combat mode is set with radio commands, | 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. | ||
</dl> | </dl> | ||
Latest revision as of 09:46, 16 June 2024
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: One of
- 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