combatBehaviour: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 11: | Line 11: | ||
|descr= 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= unit: [[Object]] or [[Group]] - AI unit or group | |||
|r1= [[String]] - unit behaviour - one of: | |||
{{Columns|2| | {{Columns|2| | ||
* "CARELESS" | * "CARELESS" | ||
Line 18: | Line 25: | ||
* "STEALTH" | * "STEALTH" | ||
* "ERROR" - when not available | * "ERROR" - when not available | ||
}} | }} | ||
|x1= <sqf> | |x1= <sqf> |
Revision as of 16:41, 17 April 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:
- unit: 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