combatBehaviour: Difference between revisions
Jump to navigation
Jump to search
m (command group) |
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: | ||
{{Columns|2| | |||
* "CARELESS" | * "CARELESS" | ||
* "SAFE" | * "SAFE" | ||
Line 17: | Line 18: | ||
* "STEALTH" | * "STEALTH" | ||
* "ERROR" - when not available | * "ERROR" - when not available | ||
|shrink= y | |||
}} | |||
|s1= [[combatBehaviour]] unit | |s1= [[combatBehaviour]] unit | ||
Line 30: | Line 33: | ||
|r2= [[String]] - group behaviour, see description | |r2= [[String]] - group behaviour, see description | ||
|x1= < | |x1= <sqf> | ||
unit1 setCombatBehaviour "CARELESS"; | |||
combatBehaviour unit1; // "CARELESS" | |||
</sqf> | |||
|x2= < | |x2= <sqf> | ||
group unit1 setCombatBehaviour "SAFE"; | |||
combatBehaviour group unit1; // "SAFE" | |||
</sqf> | |||
|seealso= [[setCombatBehaviour]] [[setBehaviour]] [[setBehaviourStrong]] [[setWaypointBehaviour]] [[combatMode]] [[setCombatMode]] [[skill]] [[setSkill]] | |seealso= [[setCombatBehaviour]] [[setBehaviour]] [[setBehaviourStrong]] [[setWaypointBehaviour]] [[combatMode]] [[setCombatMode]] [[skill]] [[setSkill]] | ||
}} | }} |
Revision as of 17:20, 5 May 2022
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:
- AI BehaviourGroups
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:
- 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