setWaypointBehaviour: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|exec=" to "|serverExec=")
m (Text replacement - ">Posted on August ([0-9]{2}), ([0-9]{4})" to ">Posted on $2-08-$1")
 
(64 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma |Game name=
|game1= ofpe
|version1= 1.00


|1.00|Game version=
|game2= arma1
|version2= 1.00


|serverExec= server|=
|game3= arma2
|version3= 1.00


|eff= global |Multiplayer Effects=
|game4= arma2oa
____________________________________________________________________________________________
|version4= 1.50


| Switches the unit behaviour when the waypoint becomes active.
|game5= tkoh
|version5= 1.00
 
|game6= arma3
|version6= 0.50
 
|serverExec= server
 
|eff= global
 
|gr1= Waypoints
 
|descr= Switches the unit behaviour when the waypoint becomes active.
<br>
<br>
<br>
<br>
Line 22: Line 36:
* "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=
|s1= waypoint [[setWaypointBehaviour]] mode


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


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


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


| [[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=
|x1= <sqf>[_grp, 2] setWaypointBehaviour "AWARE";</sqf>


|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]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<dd class="notedate">Posted on August 26, 2008 - 13:32
<dt></dt>
<dt class="note">'''[[User:Str|Str]]'''<dd class="note">Modes are case sensitive - ''"safe"'' won't work, while ''"SAFE"'' is ok.
<dd class="notedate">Posted on 2008-08-26 - 13:32</dd>
<!-- Note Section END -->
<dt class="note">[[User:Str|Str]]</dt>
<dd class="note">Modes are case sensitive - ''"safe"'' won't work, while ''"SAFE"'' is ok.
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETWAYPOINTBEHAVIOUR]]
[[Category:Scripting Commands OFP Elite |SETWAYPOINTBEHAVIOUR]]
[[Category:Scripting Commands ArmA|SETWAYPOINTBEHAVIOUR]]
[[Category:Command_Group:_Waypoints|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:59, 13 May 2023

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: Waypoint
mode: String
Return Value:
Nothing

Examples

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

Additional Information

See also:
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

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
Posted on 2008-08-26 - 13:32
Str
Modes are case sensitive - "safe" won't work, while "SAFE" is ok.