enableAttack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Some wiki formatting)
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma |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


____________________________________________________________________________________________
|game5= arma3
|version5= 0.50


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


| group '''enableAttack''' enable  |SYNTAX=
|eff= global


|p1= group: [[Object]] or [[Group]] |PARAMETER1=
|gr1= Groups
|p2= enable: [[Boolean]]            |PARAMETER2=


| [[Nothing]] |RETURNVALUE=
|gr2= Unit Control
____________________________________________________________________________________________
 
|x1= <code>_group1 '''enableAttack''' true</code>  |EXAMPLE1=
____________________________________________________________________________________________


| [[attackEnabled]] |SEEALSO=
|descr= Set if leader can issue attack commands to the soldiers in his group.


}}
|s1= group [[enableAttack]] enable


<h3 style="display:none">Notes</h3>
|p1= group: [[Object]] or [[Group]]
<dl class="command_description">
|p2= enable: [[Boolean]]
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_group1 enableAttack true;</sqf>


[[Category:Scripting Commands|ENABLEATTACK]]
|seealso= [[attackEnabled]]
[[Category:Scripting Commands ArmA|ENABLEATTACK]]
}}
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 17: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