setCombatBehaviour: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
|gr2= Groups
|gr2= Groups


| Sets unit or group behaviour. To retrieve unit or group behaviour see [[combatBehaviour]]. The behaviour is one of:  
| 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"

Revision as of 19:09, 8 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationGroups

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object - AI unit
behaviour: String - see description
Return Value:
Return value needed

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:
See also needed

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