Difference between revisions of "setCombatBehaviour"
Jump to navigation
Jump to search
m |
|||
Line 31: | Line 31: | ||
| '''Every unit''' in the group, and the '''group''' itself | | '''Every unit''' in the group, and the '''group''' itself | ||
|- | |- | ||
− | + | | [[setCombatBehaviour]] | |
| If argument is [[Object]], only that '''unit''', and if argument is [[Group]], the '''group''' itself (not its units) | | If argument is [[Object]], only that '''unit''', and if argument is [[Group]], the '''group''' itself (not its units) | ||
|} | |} |
Latest revision as of 13:02, 22 May 2022
Description
- Description:
- Sets an individual unit entity behaviour (main syntax) or a group entity behaviour (alternative syntax). The group in this case is a Group entity and not a simple collection of units. To retrieve unit or group behaviour see combatBehaviour. The behaviour is one of:
- "CARELESS"
- "SAFE"
- "AWARE"
- "COMBAT"
- "STEALTH"
- Groups:
- AI BehaviourGroups
Syntax
- Syntax:
- unit setCombatBehaviour behaviour
- Parameters:
- unit: Object - AI unit
- behaviour: String - see description
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- group setCombatBehaviour behaviour
- Parameters:
- group: Group - AI group
- behaviour: String - see description
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- AIBehaviour combatBehaviour behaviour setBehaviour setBehaviourStrong setWaypointBehaviour combatMode setCombatMode skill setSkill
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