setCurrentWaypoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dd class="notedate">" to " <dt><dt> <dd class="notedate">")
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
Line 23: Line 23:
}}
}}
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 27 Aug 2007</dd>
<dd class="notedate">Posted on 27 Aug 2007</dd>
<dt class="note">[[User:Way|Way]]</dt>
<dt class="note">[[User:Way|Way]]</dt>
Line 43: Line 42:
<dd class="note">
<dd class="note">
Using this command forces the last waypoint to complete. Any code in the on Act of that waypoint will run.  
Using this command forces the last waypoint to complete. Any code in the on Act of that waypoint will run.  
<!-- Note Section END -->
</dl>
</dl>



Revision as of 00:41, 6 April 2021

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.