setCombatBehaviour: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Arma3dev → arma3) |
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.04 | |version1= 2.04 | ||
Revision as of 15:51, 3 May 2021
Description
- Description:
- Sets unit behaviour (main syntax) or group behaviour (alternative syntax). To retrieve unit or group behaviour see combatBehaviour. The behaviour is one of:
- "CARELESS"
- "SAFE"
- "AWARE"
- "COMBAT"
- "STEALTH"
- Groups:
- Object ManipulationGroups
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:
unit1 setCombatBehaviour "SAFE";
- Example 2:
group1 setCombatBehaviour "CARELESS";
Additional Information
- See also:
- AIBehaviourcombatBehaviourbehavioursetBehavioursetBehaviourStrongsetWaypointBehaviourcombatModesetCombatModeskillsetSkill
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