setCombatBehaviour: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|2.03 " to "| 2.04 ") |
Lou Montana (talk | contribs) m (Arma3dev → arma3) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| | |game1= arma3 | ||
| 2.04 | |version1= 2.04 | ||
|arg= local | |arg= local | ||
Line 12: | Line 12: | ||
|gr2= Groups | |gr2= Groups | ||
| Sets unit behaviour (main syntax) or group behaviour (alternative syntax). To retrieve unit or group behaviour see [[combatBehaviour]]. The behaviour is one of: | |descr= Sets unit behaviour (main syntax) or group behaviour (alternative syntax). To retrieve unit or group behaviour see [[combatBehaviour]]. The behaviour is one of: | ||
* "CARELESS" | * "CARELESS" | ||
* "SAFE" | * "SAFE" | ||
Line 20: | Line 20: | ||
{{Feature | Informative | See [[AI Behaviour]] for details of the effect of this command on AI units. Group behaviour usually is "CARELESS" or "SAFE"}} | {{Feature | Informative | See [[AI Behaviour]] for details of the effect of this command on AI units. Group behaviour usually is "CARELESS" or "SAFE"}} | ||
| unit [[setCombatBehaviour]] behaviour | |s1= unit [[setCombatBehaviour]] behaviour | ||
|p1= unit: [[Object]] - AI unit | |p1= unit: [[Object]] - AI unit | ||
Line 26: | Line 26: | ||
|p2= behaviour: [[String]] - see description | |p2= behaviour: [[String]] - see description | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|s2= group [[setCombatBehaviour]] behaviour | |s2= group [[setCombatBehaviour]] behaviour | ||
Line 37: | Line 37: | ||
|x1= <code>unit1 [[setCombatBehaviour]] "SAFE";</code> | |x1= <code>unit1 [[setCombatBehaviour]] "SAFE";</code> | ||
|x2= <code>group1 [[setCombatBehaviour]] "CARELESS";</code> | |x2= <code>group1 [[setCombatBehaviour]] "CARELESS";</code> | ||
|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 14:39, 27 April 2021
Description
- Description:
- Sets unit behaviour (main syntax) or group behaviour (alternative syntax). To retrieve unit or group behaviour see combatBehaviour. The behaviour is one of:
- "CARELESS"
- "SAFE"
- "AWARE"
- "COMBAT"
- "STEALTH"
- Groups:
- Object ManipulationGroups
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:
- AIBehaviourcombatBehaviourbehavioursetBehavioursetBehaviourStrongsetWaypointBehaviourcombatModesetCombatModeskillsetSkill
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