setWaypointBehaviour: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|serverExec= server
|serverExec= server


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Waypoints |GROUP1=
|gr1= Waypoints


| Switches the unit behaviour when the waypoint becomes active.
| Switches the unit behaviour when the waypoint becomes active.
Line 22: Line 22:
* "STEALTH"
* "STEALTH"


See the [[AIBehaviour]] page for details of the effect of this command on AI units. |DESCRIPTION=
See the [[AIBehaviour]] page for details of the effect of this command on AI units.


| waypoint '''setWaypointBehaviour''' mode |SYNTAX=
| waypoint '''setWaypointBehaviour''' mode


|p1= waypoint: [[Array]] - format [[Waypoint]] |PARAMETER1=
|p1= waypoint: [[Array]] - format [[Waypoint]]


|p2= mode: [[String]] As Above |PARAMETER2=
|p2= mode: [[String]] As Above


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>[_grp, 2] [[setWaypointBehaviour]] "AWARE";</code> |EXAMPLE1=
|x1= <code>[_grp, 2] [[setWaypointBehaviour]] "AWARE";</code>


| [[Mission_Editor:_Waypoints#Behaviour|behaviour description]], [[AIBehaviour]], [[waypoints]], [[deleteWaypoint]], [[copyWaypoints]], [[setCurrentWaypoint]], [[setWaypointCombatMode]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointTimeout]], [[setWaypointType]], [[setWaypointVisible]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[setWaypointLoiterRadius]], [[waypointLoiterRadius]], [[addWaypoint]], [[setWaypointLoiterType]], [[waypointSpeed]] |SEEALSO=
| [[Mission_Editor:_Waypoints#Behaviour|behaviour description]], [[AIBehaviour]], [[waypoints]], [[deleteWaypoint]], [[copyWaypoints]], [[setCurrentWaypoint]], [[setWaypointCombatMode]], [[setWaypointCompletionRadius]], [[setWaypointDescription]], [[setWaypointFormation]], [[setWaypointHousePosition]], [[setWaypointPosition]], [[setWaypointScript]], [[setWaypointSpeed]], [[setWaypointStatements]], [[setWaypointTimeout]], [[setWaypointType]], [[setWaypointVisible]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[setWaypointLoiterRadius]], [[waypointLoiterRadius]], [[addWaypoint]], [[setWaypointLoiterType]], [[waypointSpeed]]


}}
}}

Revision as of 12:24, 18 January 2021

Hover & click on the images for description

Description

Description:
Switches the unit behaviour when the waypoint becomes active.

Possible values are:
  • "UNCHANGED"
  • "CARELESS"
  • "SAFE"
  • "AWARE"
  • "COMBAT"
  • "STEALTH"
See the AIBehaviour page for details of the effect of this command on AI units.
Groups:
Waypoints

Syntax

Syntax:
waypoint setWaypointBehaviour mode
Parameters:
waypoint: Array - format Waypoint
mode: String As Above
Return Value:
Nothing

Examples

Example 1:
[_grp, 2] setWaypointBehaviour "AWARE";

Additional Information

See also:
behaviour descriptionAIBehaviourwaypointsdeleteWaypointcopyWaypointssetCurrentWaypointsetWaypointCombatModesetWaypointCompletionRadiussetWaypointDescriptionsetWaypointFormationsetWaypointHousePositionsetWaypointPositionsetWaypointScriptsetWaypointSpeedsetWaypointStatementssetWaypointTimeoutsetWaypointTypesetWaypointVisiblewaypointAttachVehiclewaypointAttachedVehiclesetWaypointLoiterRadiuswaypointLoiterRadiusaddWaypointsetWaypointLoiterTypewaypointSpeed

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

Posted on August 26, 2008 - 13:32
Str
Modes are case sensitive - "safe" won't work, while "SAFE" is ok.