setWaypointBehaviour: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *ofpe * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= ofpe |version1= $1 |game2")
m (Text replacement - ">Posted on August ([0-9]{2}), ([0-9]{4})" to ">Posted on $2-08-$1")
 
(32 intermediate revisions by 2 users not shown)
Line 38: Line 38:
See the [[AIBehaviour]] page for details of the effect of this command on AI units.
See the [[AIBehaviour]] page for details of the effect of this command on AI units.


|s1= waypoint '''setWaypointBehaviour''' mode
|s1= waypoint [[setWaypointBehaviour]] mode


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


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


|r1=[[Nothing]]
|r1= [[Nothing]]


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


Line 54: Line 54:


<dt></dt>
<dt></dt>
<dd class="notedate">Posted on August 26, 2008 - 13:32</dd>
<dd class="notedate">Posted on 2008-08-26 - 13:32</dd>
<dt class="note">[[User:Str|Str]]</dt>
<dt class="note">[[User:Str|Str]]</dt>
<dd class="note">Modes are case sensitive - ''"safe"'' won't work, while ''"SAFE"'' is ok.
<dd class="note">Modes are case sensitive - ''"safe"'' won't work, while ''"SAFE"'' is ok.
</dl>
</dl>
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

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.