# Lane Waypoint Add
Flags —
Native
|Action
Adds a waypoint to the specified lane.
# Arguments
int
— Lanepoint
— Waypoint
Returns — void
native void AILaneWaypointAdd(int lane, point waypoint);
# Related
Category: AI Advanced / Lane / Actions
- Lane Waypoint Clear All —
void
— AILaneWaypointClearAll - Lane Waypoint Add —
void
— AILaneWaypointAdd - Lane Waypoint Calc Closest Data For Lane —
void
— AILaneWaypointCalcClosestDataForLane
# Examples
mods/heroesdata.stormmod — base.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)) {