setCombatMode: Difference between revisions

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


| ofp |= Game name


<h2 style="color:#000066">'''''group'' setCombatMode ''mode'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Set group combat mode (engagement rules).
Mode may be one of:
* '''"BLUE"''' (Never fire)
* '''"GREEN"''' (Hold fire - defend only)
* '''"WHITE"''' (Hold fire, engage at will)
* '''"YELLOW"''' (Fire at will)
* '''"RED"''' (Fire at will, engage at will)
|= Description
____________________________________________________________________________________________


'''Operand types:'''
| group '''setCombatMode''' mode |= Syntax


'''group:''' [[Object]] or [[Group]]
|p1= group: [[Object]] |= Parameter 1


'''mode:''' [[String]]
|p2= mode: [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>group1 setCombatMode "BLUE"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Set '''group''' combat '''mode''' (engagement rules).<br>
<h3 style="display:none">Notes</h3>
'''Mode''' may be one of:
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>


* '''"BLUE"''' (Never fire)
<h3 style="display:none">Bottom Section</h3>
* '''"GREEN"''' (Hold fire - defend only)
[[Category:Scripting Commands|SETCOMBATMODE]]
* '''"WHITE"''' (Hold fire, engage at will)
[[Category:Scripting Commands OFP 1.96|SETCOMBATMODE]]
* '''"YELLOW"''' (Fire at will)
[[Category:Scripting Commands OFP 1.46|SETCOMBATMODE]]
* '''"RED"''' (Fire at will, engage at will)
[[Category:Scripting Commands ArmA|SETCOMBATMODE]]
 
 
'''Example:<br>'''
 
group1 '''setCombatMode''' '''"BLUE"'''

Revision as of 00:09, 2 August 2006

Hover & click on the images for description

Description

Description:
Set group combat mode (engagement rules). Mode may be one of:
  • "BLUE" (Never fire)
  • "GREEN" (Hold fire - defend only)
  • "WHITE" (Hold fire, engage at will)
  • "YELLOW" (Fire at will)
  • "RED" (Fire at will, engage at will)
Groups:
Uncategorised

Syntax

Syntax:
group setCombatMode mode
Parameters:
group: Object
mode: String
Return Value:
Nothing

Examples

Example 1:
group1 setCombatMode "BLUE"

Additional Information

See also:
See also needed

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