# Lane Waypoint Get Calc Data Closest Point
Flags —
Native
|Function
Returns the closest point along the lane calculated by the last call to “Lane Waypoint Calc Closest Data For Lane”.
Returns — point
native point AILaneWaypointGetCalcDataClosestPoint();
# Related
Category: AI Advanced / Lane / Functions
- Lane Waypoint Get Closest Lane —
int
— AILaneWaypointGetClosestLane - Lane Waypoint Get Calc Data Closest Waypoint Index —
int
— AILaneWaypointGetCalcDataClosestWaypointIndex - Lane Waypoint Get Calc Data Second Waypoint Index —
int
— AILaneWaypointGetCalcDataSecondWaypointIndex - Lane Waypoint Get Calc Data Closest Point —
point
— AILaneWaypointGetCalcDataClosestPoint - Lane Waypoint Get Calc Data Closest Dist —
fixed
— AILaneWaypointGetCalcDataClosestDist
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:8193
libGame_gv_closestLaneData.lv_laneData[lp_curLane].lv_closestIndex = AILaneWaypointGetCalcDataClosestWaypointIndex();
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();
}