# Lane Waypoint Get Closest Lane

FlagsNative | Function

Finds the lane closest to TestPoint (note this function can be called any time and is not dependent on “Lane Waypoint Calc Closest Data For Lane”).

# Arguments

  • point — TestPoint

Returns — int

native int AILaneWaypointGetClosestLane(point testPoint);

Category: AI Advanced / Lane / Functions

# Examples

# mods/heroes.stormmod

MapScript.galaxy

// L6808
AILaneWaypointGetClosestLane(UnitGetPosition(libStEx_gv_hERO_EnemyFalstad))
// L6808
AILaneWaypointGetClosestLane(UnitGetPosition(libStEx_gv_hERO_EnemyFalstad))

# mods/heroesdata.stormmod

GameLib.galaxy

// L19027
AILaneWaypointGetClosestLane(UnitGetPosition(lv_dyingStructureUnit))

# mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod

LibMSHE.galaxy

// L642
AILaneWaypointGetClosestLane(UnitGetPosition(lv_monster))

# mods/heromods/thefirelords.stormmod

LibHMaj.galaxy

// L595
AILaneWaypointGetClosestLane(lv_targetPoint)