{"name":"currentWaypoint","title":"currentWaypoint","type":"command","url":"https://community.bistudio.com/wiki/currentWaypoint","revid":378132,"updated":"2026-02-22T20:40:12Z","groups":["Waypoints"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Returns the *index* of the current waypoint (**not** the waypoint in Waypoint Array format).\n\n- To determine the validity of the index, compare it to the waypoints count.\n- If all waypoints are completed, then the index is 1 greater than the last valid index.\n- If there are no waypoints, then the index is 0.\n\nBy default, a group has one already-completed waypoint at their starting position, making the first waypoint number one, not zero.","syntaxes":[{"syntax":"currentWaypoint groupName","params":[{"name":"groupName","type":"Group","type_expr":"Group"}],"returns":{"type":"Number","type_expr":"Number","description":"index of the current waypoint"},"form":"unary","right":{"text":"groupName"}}],"examples":[{"code":["_index = currentWaypoint group player;"]},{"code":["_waypointFormat = [_group, currentWaypoint _group];"]}],"see_also":["waypoints","setCurrentWaypoint"]}