# Lane Waypoint Get Calc Data Closest Dist

FlagsNative | Function

Returns the distance to the closest point along the lane calculated by the last call to “Lane Waypoint Calc Closest Data For Lane”.

Returns — fixed

native fixed AILaneWaypointGetCalcDataClosestDist();

Category: AI Advanced / Lane / Functions

# Examples

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

    libGame_gv_closestLaneData.lv_laneData[lp_curLane].lv_secondaryIndex = AILaneWaypointGetCalcDataSecondWaypointIndex();
    libGame_gv_closestLaneData.lv_laneData[lp_curLane].lv_closestPoint = AILaneWaypointGetCalcDataClosestPoint();
    libGame_gv_closestLaneData.lv_laneData[lp_curLane].lv_closestDist = AILaneWaypointGetCalcDataClosestDist();
}