DCS World Typescript
    Preparing search index...
    interface l_land {
        SurfaceType: {
            LAND: number;
            ROAD: number;
            RUNWAY: number;
            SHALLOW_WATER: number;
            WATER: number;
        };
        findPathOnRoads(...args: any[]): unknown;
        getClosestPointOnRoads(
            roadType: "roads" | "railroads",
            x: number,
            y: number,
        ): LuaMultiReturn<[number, number]>;
        getHeight(point: l_Vec2): number;
        getIP(...args: any[]): unknown;
        getSurfaceHeightWithSeabed(...args: any[]): unknown;
        getSurfaceType(...args: any[]): unknown;
        isVisible(...args: any[]): unknown;
        profile(...args: any[]): unknown;
    }

    Hierarchy (View Summary)

    Index

    Properties

    SurfaceType: {
        LAND: number;
        ROAD: number;
        RUNWAY: number;
        SHALLOW_WATER: number;
        WATER: number;
    }

    Methods

    • Returns the X and Y values of a coordinate on the nearest road from the given point. NOTE that this function does not use vec2 or vec3. It uses individual values representing a vec2 for x and y.

      Valid road type values: 'roads' and 'railroads'

      Parameters

      • roadType: "roads" | "railroads"

        {"roads" | "railroads"} The type of road to get the closest point from.

      • x: number

        {number} The X value of the point to get the closest road point from.

      • y: number

        {number} The Y value of the point to get the closest road point from.

      Returns LuaMultiReturn<[number, number]>