combatBehaviour: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 23: | Line 23: | ||
|r1= [[String]] - unit behaviour, see description | |r1= [[String]] - unit behaviour, see description | ||
|s2= | |s2= [[combatBehaviour]] group | ||
|p21= group: [[Group]] - AI group | |p21= group: [[Group]] - AI group |
Revision as of 22:01, 19 June 2021
Description
- Description:
- Returns combat behaviour of unit or group. To set unit or group behaviour see setCombatBehaviour. The behaviour is one of:
- "CARELESS"
- "SAFE"
- "AWARE"
- "COMBAT"
- "STEALTH"
- "ERROR" - when not available
- Groups:
- Object ManipulationGroups
Syntax
- Syntax:
- combatBehaviour unit
- Parameters:
- unit: Object - AI unit
- Return Value:
- String - unit behaviour, see description
Alternative Syntax
- Syntax:
- combatBehaviour group
- Parameters:
- group: Group - AI group
- Return Value:
- String - group behaviour, see description
Examples
- Example 1:
unit1 setCombatBehaviour "CARELESS"; combatBehaviour unit1; //"CARELESS"
- Example 2:
group unit1 setCombatBehaviour "SAFE"; combatBehaviour group unit1; //"SAFE"
Additional Information
- See also:
- setCombatBehavioursetBehavioursetBehaviourStrongsetWaypointBehaviourcombatModesetCombatModeskillsetSkill
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