attackEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 70393 by Str_bi_wiki on 2013-03-25T10:44:08Z)
m (template:command argument fix)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|p1= name: [[Object]] or [[Group]] |= Parameter 1
|p1= name: [[Object]] or [[Group]] |= Parameter 1


| [[Boolean]] |= Return value
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 22: Line 22:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[enableAttack]] |= See also
| [[enableAttack]] |SEEALSO=


}}
}}

Revision as of 12:26, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Return whether a group's leader can issue attack commands to soldiers under his command.
Groups:
Uncategorised

Syntax

Syntax:
Boolean = attackEnabled name
Parameters:
name: Object or Group
Return Value:
Boolean

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