setCurrentWaypoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ")
Line 24: Line 24:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 27 Aug 2007
<dd class="notedate">Posted on 27 Aug 2007</dd>
<dt class="note">[[User:Way|Way]]
<dt class="note">[[User:Way|Way]]
<dd class="note">
<dd class="note">
(A1 1.08) Does not seem to work with Game Logic. Crashes to desktop.
(A1 1.08) Does not seem to work with Game Logic. Crashes to desktop.


<dd class="notedate">Posted on 26 Nov 2008
<dd class="notedate">Posted on 26 Nov 2008</dd>
<dt class="note">[[User:Ceeeb|Ceeeb]]
<dt class="note">[[User:Ceeeb|Ceeeb]]
<dd class="note">
<dd class="note">
Note that a waypoints number as seen in the mission editor is not the same as it is waypoint number using this command. In the mission editor, waypoint 0 refers to the first placed waypoint, whereas waypoint 0 with the setCurrentWaypoint command refers to the unit's initial position waypoint.
Note that a waypoints number as seen in the mission editor is not the same as it is waypoint number using this command. In the mission editor, waypoint 0 refers to the first placed waypoint, whereas waypoint 0 with the setCurrentWaypoint command refers to the unit's initial position waypoint.


<dd class="notedate">Posted on 17 Jan 2010
<dd class="notedate">Posted on 17 Jan 2010</dd>
<dt class="note">[[User:Galzohar|Galzohar]]
<dt class="note">[[User:Galzohar|Galzohar]]
<dd class="note">
<dd class="note">
(A2 1.05) This command may crash the game to desktop if you call it from the on act field of a waypoint that belongs to that same unit.  
(A2 1.05) This command may crash the game to desktop if you call it from the on act field of a waypoint that belongs to that same unit.  


<dd class="notedate">Posted on 13 Aug 2012
<dd class="notedate">Posted on 13 Aug 2012</dd>
<dt class="note">[[User:Igneous01|Igneous01]]
<dt class="note">[[User:Igneous01|Igneous01]]
<dd class="note">
<dd class="note">

Revision as of 02:08, 30 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Waypoints

Syntax

Syntax:
Syntax needed
Parameters:
groupName: Object or Group
waypoint: Array - format Waypoint
Return Value:
Return value needed

Examples

Example 1:
_grp setCurrentWaypoint [_grp, 1];

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
Posted on 27 Aug 2007
Way
(A1 1.08) Does not seem to work with Game Logic. Crashes to desktop.
Posted on 26 Nov 2008
Ceeeb
Note that a waypoints number as seen in the mission editor is not the same as it is waypoint number using this command. In the mission editor, waypoint 0 refers to the first placed waypoint, whereas waypoint 0 with the setCurrentWaypoint command refers to the unit's initial position waypoint.
Posted on 17 Jan 2010
Galzohar
(A2 1.05) This command may crash the game to desktop if you call it from the on act field of a waypoint that belongs to that same unit.
Posted on 13 Aug 2012
Igneous01
Using this command forces the last waypoint to complete. Any code in the on Act of that waypoint will run.