setCombatBehaviour: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
* "STEALTH" | * "STEALTH" | ||
{{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"}} | ||
<spoiler text="Comparison of Behaviour commands"> | |||
{| class="wikitable" style="text-align: center" | |||
! Command | |||
! Applies To | |||
|- | |||
| [[setBehaviour]] | |||
| Entire group '''units''', but not the group itself | |||
|- | |||
| [[setBehaviourStrong]] | |||
| Entire group '''units''' and the '''group''' itself | |||
|- | |||
! [[setCombatBehaviour]] | |||
| Individual '''units''' or '''group''', depending on the argument | |||
|} | |||
</spoiler> | |||
|s1= unit [[setCombatBehaviour]] behaviour | |s1= unit [[setCombatBehaviour]] behaviour |
Revision as of 12:25, 21 May 2022
Description
- Description:
- Sets an individual unit entity behaviour (main syntax) or a group entity behaviour (alternative syntax). The group in this case is a Group entity and not a simple collection of units. To retrieve unit or group behaviour see combatBehaviour. The behaviour is one of:
- "CARELESS"
- "SAFE"
- "AWARE"
- "COMBAT"
- "STEALTH"
Command Applies To setBehaviour Entire group units, but not the group itself setBehaviourStrong Entire group units and the group itself setCombatBehaviour Individual units or group, depending on the argument - 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