enableAttack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Some wiki formatting)
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma1 |Game name=
|game1= arma1
|version1= 1.00


|1.00|Game version=
|game2= arma2
|version2= 1.00


|arg= local |Multiplayer Arguments=
|game3= arma2oa
|version3= 1.50


|eff= global |Multiplayer Effects=
|game4= tkoh
|version4= 1.00


|gr1= Groups |GROUP1=
|game5= arma3
|version5= 0.50


|gr2= Unit Control |GROUP2=
|arg= local


____________________________________________________________________________________________
|eff= global


| Set if leader can issue attack commands to the soldiers in his group. |DESCRIPTION=
|gr1= Groups
____________________________________________________________________________________________


| group '''enableAttack''' enable  |SYNTAX=
|gr2= Unit Control


|p1= group: [[Object]] or [[Group]] |PARAMETER1=
|descr= Set if leader can issue attack commands to the soldiers in his group.
|p2= enable: [[Boolean]]            |PARAMETER2=


| [[Nothing]] |RETURNVALUE=
|s1= group [[enableAttack]] enable
____________________________________________________________________________________________
 
|x1= <code>_group1 '''enableAttack''' [[true]];</code>  |EXAMPLE1=
____________________________________________________________________________________________


| [[attackEnabled]] |SEEALSO=
|p1= group: [[Object]] or [[Group]]
|p2= enable: [[Boolean]]


}}
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>_group1 enableAttack true;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[attackEnabled]]
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|ENABLEATTACK]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 16:15, 13 May 2022

Hover & click on the images for description

Description

Description:
Set if leader can issue attack commands to the soldiers in his group.
Groups:
GroupsUnit Control

Syntax

Syntax:
group enableAttack enable
Parameters:
group: Object or Group
enable: Boolean
Return Value:
Nothing

Examples

Example 1:
_group1 enableAttack true;

Additional Information

See also:
attackEnabled

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