# Lane Waypoint Add

FlagsNative | Action

Adds a waypoint to the specified lane.

# Arguments

  • int — Lane
  • point — Waypoint

Returns — void

native void AILaneWaypointAdd(int lane, point waypoint);

Category: AI Advanced / Lane / Actions

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:17657

        lv_waypointIndex = 1;
        for ( ; ( (autoF21E549D_ai >= 0 && lv_waypointIndex <= autoF21E549D_ae) || (autoF21E549D_ai < 0 && lv_waypointIndex >= autoF21E549D_ae) ) ; lv_waypointIndex += autoF21E549D_ai ) {
            AILaneWaypointAdd(lv_laneIndex, libGame_gv_laneData[lv_laneIndex].lv_waypoints[lv_waypointIndex]);
        }
        if ((libGame_gv_laneData[lv_laneIndex].lv_heroMaxOrderWaypointIndex == 0)) {