enableAttack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
m (Some wiki formatting)
 
(43 intermediate revisions by 6 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 |= Arguments in MP
|game3= arma2oa
|version3= 1.50


|eff= global |= Effects in MP
|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]] |= Parameter 1
|gr1= Groups
|p2= enable: [[Boolean]]            |= Parameter 2


| [[Nothing]] |= Return value
|gr2= Unit Control
____________________________________________________________________________________________
 
|x1= _group1 '''enableAttack''' true  |= Example 1
____________________________________________________________________________________________


| [[attackEnabled]] |= See also
|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 ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands VBS2|{{uc:{{PAGENAME}}}}]]

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