attackEnabled: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 11: | Line 10: | ||
|gr2= Unit Control |GROUP2= | |gr2= Unit Control |GROUP2= | ||
| Return whether a group's leader can issue attack commands to soldiers under his command. |DESCRIPTION= | | Return whether a group's leader can issue attack commands to soldiers under his command. |DESCRIPTION= | ||
| [[Boolean]] <nowiki>=</nowiki> '''attackEnabled''' name |SYNTAX= | | [[Boolean]] <nowiki>=</nowiki> '''attackEnabled''' name |SYNTAX= | ||
Line 21: | Line 18: | ||
| [[Boolean]] |RETURNVALUE= | | [[Boolean]] |RETURNVALUE= | ||
|x1= <code>if (not '''attackEnabled''' _soldier) then {_soldier [[setCombatMode]] "Careless"} </code> |EXAMPLE1= | |x1= <code>if (not '''attackEnabled''' _soldier) then {_soldier [[setCombatMode]] "Careless"} </code> |EXAMPLE1= | ||
| [[enableAttack]] |SEEALSO= | | [[enableAttack]] |SEEALSO= |
Revision as of 00:30, 17 January 2021
Description
- Description:
- Return whether a group's leader can issue attack commands to soldiers under his command.
- Groups:
- GroupsUnit Control
Syntax
Examples
- Example 1:
if (not attackEnabled _soldier) then {_soldier setCombatMode "Careless"}
Additional Information
- See also:
- enableAttack
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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Groups
- Command Group: Unit Control
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands