setCurrentWaypoint: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added a note on Game Logic units.)
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| group '''setCurrentWaypoint''' waypoint |= Syntax
| [[Group]] '''setCurrentWaypoint''' [[Waypoint]] |= Syntax
 
|p1= group: [[Group]] |= Parameter 1
 
|p2= waypoint: [[Array]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>grp setCurrentWaypoint [grp, 1]</pre> |= Example 1
|x1= <pre>_grp setCurrentWaypoint [_grp, 1]</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 08:51, 30 August 2007

-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:
Group setCurrentWaypoint Waypoint
Return Value:
Nothing

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

Notes

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 units initial position waypoint.
Way
Does not seem to work with Game Logic as of ArmA v1.08. Crashes to desktop.