combatBehaviour: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|2.03 " to "| 2.04 ")
m (Arma3dev → arma3)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|Arma3dev
|game1= arma3


| 2.04
|version1= 2.04


|arg= global
|arg= global
Line 12: Line 12:
|gr2= Groups
|gr2= Groups


| Returns combat behaviour of unit or group. To set unit or group behaviour see [[setCombatBehaviour]]. The behaviour is one of:
|descr= Returns combat behaviour of unit or group. To set unit or group behaviour see [[setCombatBehaviour]]. The behaviour is one of:
*"CARELESS"
* "CARELESS"
*"SAFE"
* "SAFE"
*"AWARE"
* "AWARE"
*"COMBAT"
* "COMBAT"
*"STEALTH"
* "STEALTH"
*"ERROR" - when not available
* "ERROR" - when not available


| [[combatBehaviour]] unit
|s1= [[combatBehaviour]] unit


|p1= unit: [[Object]] - AI unit
|p1= unit: [[Object]] - AI unit


| [[String]] - unit behaviour, see description  
|r1= [[String]] - unit behaviour, see description  


|s2=  [[combatBehaviour]] group
|s2=  [[combatBehaviour]] group
Line 40: Line 40:
|seealso= [[setCombatBehaviour]], [[setBehaviour]], [[setBehaviourStrong]], [[setWaypointBehaviour]], [[combatMode]], [[setCombatMode]], [[skill]], [[setSkill]]
|seealso= [[setCombatBehaviour]], [[setBehaviour]], [[setBehaviourStrong]], [[setWaypointBehaviour]], [[combatMode]], [[setCombatMode]], [[skill]], [[setSkill]]
}}
}}
</dl>
{{GameCategory|arma3|Scripting Commands}}

Revision as of 14:34, 27 April 2021

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:
  • "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