combatBehaviour

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Returns combat behaviour of unit or group. To set unit or group behaviour see setCombatBehaviour. The behaviour is one of:
Groups:
AI BehaviourGroups

Syntax

Syntax:
combatBehaviour unitOrGroup
Parameters:
unitOrGroup: Object or Group - AI unit or group
Return Value:
String - unit behaviour - one of:
  • "CARELESS"
  • "SAFE"
  • "AWARE"
  • "COMBAT"
  • "STEALTH"
  • "ERROR" - when not available

Examples

Example 1:
unit1 setCombatBehaviour "CARELESS"; combatBehaviour unit1; // "CARELESS"
Example 2:
group unit1 setCombatBehaviour "SAFE"; combatBehaviour group unit1; // "SAFE"

Additional Information

See also:
setCombatBehaviour 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