combatBehaviour: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|2.03 " to "| 2.04 ") |
BrettMayson (talk | contribs) mNo edit summary |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| | |game1= arma3 | ||
|version1= 2.04 | |||
| 2.04 | |||
|arg= global | |arg= global | ||
| | |gr1= AI Behaviour | ||
|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: | ||
| | |s1= [[combatBehaviour]] unitOrGroup | ||
| [[ | |p1= unitOrGroup: [[Object]] or [[Group]] - AI unit or group | ||
| | |r1= [[String]] - unit behaviour - one of: | ||
{{Columns|2| | |||
* "CARELESS" | |||
* "SAFE" | |||
* "AWARE" | |||
* "COMBAT" | |||
* "STEALTH" | |||
* "ERROR" - when not available | |||
}} | |||
| | |x1= <sqf> | ||
unit1 setCombatBehaviour "CARELESS"; | |||
combatBehaviour unit1; // "CARELESS" | |||
</sqf> | |||
| | |x2= <sqf> | ||
group unit1 setCombatBehaviour "SAFE"; | |||
combatBehaviour group unit1; // "SAFE" | |||
</sqf> | |||
|seealso= [[setCombatBehaviour]] [[setBehaviour]] [[setBehaviourStrong]] [[setWaypointBehaviour]] [[combatMode]] [[setCombatMode]] [[skill]] [[setSkill]] | |||
|seealso= [[setCombatBehaviour]] | |||
}} | }} | ||
Latest revision as of 06:09, 27 November 2023
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:
- Example 2:
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