attackEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (can be used on remote groups (changes on clients may take several seconds to propagate), see also, description)
Line 5: Line 5:


|1.00|= Game version
|1.00|= Game version
|arg= global |= Arguments in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return whether leader can issue attack commands. |= Description
| Return whether a group's leader can issue attack commands to soldiers under his command. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 20: Line 22:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}

Revision as of 12:55, 19 February 2009

-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