combatMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|COMBATMODE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|COMBATMODE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|COMBATMODE]]
[[Category:Scripting Commands ArmA|COMBATMODE]]


| ofp |= Game name


<h2 style="color:#000066"> '''combatMode ''grp'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns the combat mode of the given unit. See [[setCombatMode]] for more information about combat modes. |= Description
____________________________________________________________________________________________


'''grp:''' [[Object or Group]]
| '''combatMode''' group |= Syntax


'''Type of returned value:'''
|p1= group: [[Object or Group]] |= Parameter 1


[[String]]
| [[String]]
One of "BLUE", "GREEN", "YELLOW" and "RED" |= Return value
____________________________________________________________________________________________
 
|x1= <pre>?((combatMode grp1)=="BLUE") : grp1 setCombatMode "GREEN"</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[setCombatMode]] |= See also


Combat mode of given unit or group:
}}


* '''"BLUE"'''
<h3 style="display:none">Notes</h3>
* '''"GREEN"'''
<dl class="command_description">
* '''"YELLOW"'''
<!-- Note Section BEGIN -->
* '''"RED"'''


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


_cMode = '''combatMode''' [[group]] [[player]]
Use [[setCombatMode]] to set the combat mode. The definitions of the colours are given under that command.


 
[[Category:Scripting Commands|COMBATMODE]]
'''Comments:'''
[[Category:Scripting Commands OFP 1.96|COMBATMODE]]
 
[[Category:Scripting Commands OFP 1.46|COMBATMODE]]
Use [[setCombatMode]] to set the combat mode.
[[Category:Scripting Commands ArmA|COMBATMODE]]
 
The definitions of the colours are given under that command.

Revision as of 22:56, 1 August 2006

Hover & click on the images for description

Description

Description:
Returns the combat mode of the given unit. See setCombatMode for more information about combat modes.
Groups:
Uncategorised

Syntax

Syntax:
combatMode group
Parameters:
group: Object or Group
Return Value:
String - One of "BLUE", "GREEN", "YELLOW" and "RED"

Examples

Example 1:
?((combatMode grp1)=="BLUE") : grp1 setCombatMode "GREEN"

Additional Information

See also:
setCombatMode

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

Old Notes (temporary):

Use setCombatMode to set the combat mode. The definitions of the colours are given under that command.