setWaypointCombatMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 7: Line 6:


|gr1= Waypoints |GROUP1=
|gr1= Waypoints |GROUP1=
____________________________________________________________________________________________


| The group combat mode is switched when the waypoint becomes active.
| The group combat mode is switched when the waypoint becomes active.
Line 19: Line 17:
* '''"[[ArmA:_AI_Combat_Modes#Engagement_rules|YELLOW]]"''' (Fire at will)
* '''"[[ArmA:_AI_Combat_Modes#Engagement_rules|YELLOW]]"''' (Fire at will)
* '''"[[ArmA:_AI_Combat_Modes#Engagement_rules|RED]]"''' (Fire at will, engage at will) |DESCRIPTION=
* '''"[[ArmA:_AI_Combat_Modes#Engagement_rules|RED]]"''' (Fire at will, engage at will) |DESCRIPTION=
____________________________________________________________________________________________


| waypoint '''setWaypointCombatMode''' mode |SYNTAX=
| waypoint '''setWaypointCombatMode''' mode |SYNTAX=
Line 28: Line 25:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[_grp, 2] [[setWaypointCombatMode]] "RED";</code> |EXAMPLE1=
|x1= <code>[_grp, 2] [[setWaypointCombatMode]] "RED";</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[Mission_Editor:_Waypoints#Combat_Mode|combat mode description]], [[ArmA:_AI_Combat_Modes|AI Combat Modes]], [[waypoints]], [[deleteWaypoint]], [[copyWaypoints]], [[setCurrentWaypoint]], [[setWaypointBehaviour]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointTimeout]], [[setWaypointType]], [[setWaypointVisible]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[setWaypointLoiterRadius]], [[waypointLoiterRadius]], [[addWaypoint]], [[setWaypointLoiterType]], [[waypointSpeed]] |SEEALSO=
| [[Mission_Editor:_Waypoints#Combat_Mode|combat mode description]], [[ArmA:_AI_Combat_Modes|AI Combat Modes]], [[waypoints]], [[deleteWaypoint]], [[copyWaypoints]], [[setCurrentWaypoint]], [[setWaypointBehaviour]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointTimeout]], [[setWaypointType]], [[setWaypointVisible]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[setWaypointLoiterRadius]], [[waypointLoiterRadius]], [[addWaypoint]], [[setWaypointLoiterType]], [[waypointSpeed]] |SEEALSO=

Revision as of 03:56, 17 January 2021

Hover & click on the images for description

Description

Description:
The group combat mode is switched when the waypoint becomes active.

Possible mode values are:
  • "NO CHANGE" (No change)
  • "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:
Waypoints

Syntax

Syntax:
waypoint setWaypointCombatMode mode
Parameters:
waypoint: Array - format Waypoint
mode: String
Return Value:
Nothing

Examples

Example 1:
[_grp, 2] setWaypointCombatMode "RED";

Additional Information

See also:
combat mode descriptionAI Combat ModeswaypointsdeleteWaypointcopyWaypointssetCurrentWaypointsetWaypointBehavioursetWaypointCompletionRadiussetWaypointDescriptionsetWaypointFormationsetWaypointHousePositionsetWaypointPositionsetWaypointScriptsetWaypointSpeedsetWaypointStatementssetWaypointTimeoutsetWaypointTypesetWaypointVisiblewaypointAttachVehiclewaypointAttachedVehiclesetWaypointLoiterRadiuswaypointLoiterRadiusaddWaypointsetWaypointLoiterTypewaypointSpeed

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