setCombatBehaviour: Difference between revisions
Jump to navigation
Jump to search
m (command group) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 18: | Line 18: | ||
* "COMBAT" | * "COMBAT" | ||
* "STEALTH" | * "STEALTH" | ||
{{Feature | | {{Feature|informative|See [[AI Behaviour]] for details of the effect of this command on AI units. Group behaviour usually is "CARELESS" or "SAFE"}} | ||
|s1= unit [[setCombatBehaviour]] behaviour | |s1= unit [[setCombatBehaviour]] behaviour | ||
Line 36: | Line 36: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= < | |x1= <sqf>unit1 setCombatBehaviour "SAFE";</sqf> | ||
|x2= < | |x2= <sqf>group1 setCombatBehaviour "CARELESS";</sqf> | ||
|seealso= [[AIBehaviour]] [[combatBehaviour]] [[behaviour]] [[setBehaviour]] [[setBehaviourStrong]] [[setWaypointBehaviour]] [[combatMode]] [[setCombatMode]] [[skill]] [[setSkill]] | |seealso= [[AIBehaviour]] [[combatBehaviour]] [[behaviour]] [[setBehaviour]] [[setBehaviourStrong]] [[setWaypointBehaviour]] [[combatMode]] [[setCombatMode]] [[skill]] [[setSkill]] | ||
}} | }} |
Revision as of 17:29, 5 May 2022
Description
- Description:
- Sets an individual unit behaviour (main syntax) or a whole group behaviour (alternative syntax). To retrieve unit or group behaviour see combatBehaviour. The behaviour is one of:
- "CARELESS"
- "SAFE"
- "AWARE"
- "COMBAT"
- "STEALTH"
- Groups:
- AI BehaviourGroups
Syntax
- Syntax:
- unit setCombatBehaviour behaviour
- Parameters:
- unit: Object - AI unit
- behaviour: String - see description
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- group setCombatBehaviour behaviour
- Parameters:
- group: Group - AI group
- behaviour: String - see description
- Return Value:
- Nothing
Examples
- Example 1:
- unit1 setCombatBehaviour "SAFE";
- Example 2:
- group1 setCombatBehaviour "CARELESS";
Additional Information
- See also:
- AIBehaviour combatBehaviour behaviour 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