setCombatMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
(format)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set group combat mode (engagement rules).
| Sets AI [[Group | group]] combat mode (engagement rules). Mode may be one of the following:  
Mode may be one of:  
* <tt>"BLUE"</tt> : Never fire
* "BLUE" {{=}} Never fire
* <tt>"GREEN"</tt> : Hold fire - defend only
* "GREEN" {{=}} Hold fire - defend only
* <tt>"WHITE"</tt> : Hold fire, engage at will
* "WHITE" {{=}} Hold fire, engage at will
* <tt>"YELLOW"</tt> : Fire at will
* "YELLOW" {{=}} Fire at will
* <tt>"RED"</tt> : Fire at will, engage at will
* "RED" {{=}} Fire at will, engage at will
See [[Combat Modes]] for more information on combat modes.
See [[Combat Modes]] for more information on combat modes.
|DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| groupName [[setCombatMode]] mode |SYNTAX=
| group [[setCombatMode]] mode |SYNTAX=


|p1= groupName: [[Object]] or [[Group]] |PARAMETER1=
|p1= group: [[Group]] or [[Object]]. If the argument is unit [[Object]], unit's current group is used. |PARAMETER1=


|p2= mode: [[String]] |PARAMETER2=
|p2= mode: [[String]] - See description|PARAMETER2=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=

Revision as of 16:33, 24 November 2019

Hover & click on the images for description

Description

Description:
Sets AI group combat mode (engagement rules). Mode may be one of the following:
  • "BLUE" : Never fire
  • "GREEN" : Hold fire - defend only
  • "WHITE" : Hold fire, engage at will
  • "YELLOW" : Fire at will
  • "RED" : Fire at will, engage at will
See Combat Modes for more information on combat modes.
Groups:
Uncategorised

Syntax

Syntax:
group setCombatMode mode
Parameters:
group: Group or Object. If the argument is unit Object, unit's current group is used.
mode: String - See description
Return Value:
Nothing

Examples

Example 1:
_group1 setCombatMode "BLUE";

Additional Information

See also:
Combat ModesUse in WaypointscombatModebehavioursetBehaviourskillsetSkillArma 3 AI Skill

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

Notes

Bottom Section