setCurrentWaypoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
No edit summary
Line 30: Line 30:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate"></dd>
<dt class="note">'''[[User:Galzohar|Galzohar]]'''</dt>
<dd class="note">
This command will '''crash the game''' to desktop with no error message (only "stack overflow" is shown in the RPT file) if you call it from the on act field of a waypoint that belongs to that same unit. It also seems to crash in other situations when called from code written in the editor but I couldn't figure out how to reproduce it. Executing a script that will then execute this command works.<br><br>
Tested on Arma 2 vanilla 1.05.</dd>


<dd class="notedate"></dd>
<dd class="notedate"></dd>

Revision as of 03:30, 17 January 2010

-wrong parameter ("Arma") defined!-1.05
Hover & click on the images for description

Description

Description:
Sets the currently active waypoint for a group.
Groups:
Uncategorised

Syntax

Syntax:
groupName setCurrentWaypoint waypoint
Parameters:
groupName: Object or Group
waypoint: Array - format Waypoint
Return Value:
Nothing

Examples

Example 1:
_grp setCurrentWaypoint [_grp, 1]

Additional Information

See also:
waypoints

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

Galzohar
This command will crash the game to desktop with no error message (only "stack overflow" is shown in the RPT file) if you call it from the on act field of a waypoint that belongs to that same unit. It also seems to crash in other situations when called from code written in the editor but I couldn't figure out how to reproduce it. Executing a script that will then execute this command works.

Tested on Arma 2 vanilla 1.05.
Ceeeb
Note that a waypoints number as seen in the mission editor is not the same as it's 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.
Way
Does not seem to work with Game Logic as of ArmA v1.08. Crashes to desktop.