• Gets the cliff level at a point.

    Parameters

    • x: number

      x-coordinate (World) of the point.

    • y: number

      y-coordinate (World) of the point.

    Returns number

    Note

    Walkable destructables add their effective cliff level to the terrain across their pathing maps, i.e., if the terrain at some point without destructables has a cliff height of a and the destructable covering that point has an effective cliff height of b, this function returns a + b. If there are multiple walkable destructables intersecting at the requested point, the function returns a + max(b1, b2, ...). If the declared cliff height of a destructable is negative, it will have an effective cliff height of 0.

Generated using TypeDoc