Arma 3 Scripting

Command in Groups, Unit Control

attackEnabled

Also available as Markdown and JSON, or read the original wiki page.

Description

Return whether a group's leader can issue attack commands to soldiers under his command.

Syntax

attackEnabled name

Parameters:

Returns: Boolean

Examples

Example 1

if (not attackEnabled _soldier) then { _soldier setCombatMode "Careless" };

See also

enableAttack