combatMode: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= global |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Returns the combat mode of the given unit. See [[setCombatMode]] for more information about combat modes. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''combatMode''' group |= Syntax | ||
|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 | |||
____________________________________________________________________________________________ | |||
| [[setCombatMode]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
Old Notes (temporary): | |||
Use [[setCombatMode]] to set the combat mode. The definitions of the colours are given under that command. | |||
[[Category:Scripting Commands|COMBATMODE]] | |||
[[Category:Scripting Commands OFP 1.96|COMBATMODE]] | |||
[[Category:Scripting Commands OFP 1.46|COMBATMODE]] | |||
[[Category:Scripting Commands ArmA|COMBATMODE]] | |||
Revision as of 22:56, 1 August 2006
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.