enableAttack: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(48 intermediate revisions by 9 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


| Set if leader can issue attack commands. |= Description
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| [[Object#Group|Group]]Or[[Object#Unit|Unit]] '''enableAttack''' enable  |= Syntax
|game4= tkoh
|version4= 1.00


|p1= group: [[Object]] or [[Group]] |= Parameter 1
|game5= arma3
|p2= enable: [[Boolean]]            |= Parameter 2
|version5= 0.50


| [[Nothing]] |= Return value
|arg= local
____________________________________________________________________________________________
 
|x1= _group1 '''enableAttack''' true  |= Example 1
____________________________________________________________________________________________


| |= See also
|eff= global


}}
|gr1= Groups
 
|gr2= Unit Control
 
|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}}}}]]

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