{"name":"setCurrentWaypoint","title":"setCurrentWaypoint","type":"command","url":"https://community.bistudio.com/wiki/setCurrentWaypoint","revid":379230,"updated":"2026-10-30T23:04:20Z","groups":["Waypoints"],"status":"ok","games":{"arma1":"1.05","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.05","arma3_since":"0.50","locality":{"argument":"local"},"description":"Sets the currently active waypoint for a group.","syntaxes":[{"syntax":"groupName setCurrentWaypoint waypoint","params":[{"name":"groupName","type":"Group","type_expr":"Group"},{"name":"waypoint","type":"Waypoint","type_expr":"Waypoint"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"groupName"},"right":{"text":"waypoint"}}],"examples":[{"code":["_grp setCurrentWaypoint [_grp, 1];"]}],"see_also":["waypoints","deleteWaypoint","copyWaypoints","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointFormation","setWaypointHousePosition","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","waypointAttachVehicle","waypointAttachedVehicle","setWaypointLoiterRadius","waypointLoiterRadius","addWaypoint","setWaypointLoiterType","waypointSpeed"],"notes":[{"user":"Way","date":"2007-08-27T00:00:00Z","text":"(A1 1.08) Does not seem to work with Game Logic. Crashes to desktop."},{"user":"Ceeeb","date":"2008-11-26T00:00:00Z","text":"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."},{"user":"Galzohar","date":"2010-01-17T00:00:00Z","text":"(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."},{"user":"Igneous01","date":"2012-08-13T00:00:00Z","text":"Using this command forces the last waypoint to complete. Any code in the on Act of that waypoint will run."}]}