---
name: "terrainIntersectAtASL"
type: command
status: ok
groups: ["Math - Geometry"]
arma3_since: "1.68"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/terrainIntersectAtASL
revid: 377440
updated: 2026-01-02T06:46:49Z
---

# terrainIntersectAtASL

*Command · Math - Geometry · Arma 3 v1.68*

## Description

Checks for intersection of terrain between two ASL positions. Same as [terrainIntersectASL](../commands/terrainIntersectASL.md) but returns the intersection ASL position.

## Syntax

```sqf
terrainIntersectAtASL [start, end]
```

**Parameters:**

- `start`: [PositionASL](../topics/Position.md#positionasl) - start position
- `end`: [PositionASL](../topics/Position.md#positionasl) - end position

**Returns:** [PositionASL](../topics/Position.md#positionasl) - intersect position

## Examples

### Example 1

```sqf
_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];
```

## See also

[terrainIntersectASL](../commands/terrainIntersectASL.md) · [lineIntersectsSurfaces](../commands/lineIntersectsSurfaces.md) · [intersect](../commands/intersect.md) · [lineIntersects](../commands/lineIntersects.md) · [lineIntersectsWith](../commands/lineIntersectsWith.md) · [terrainIntersect](../commands/terrainIntersect.md) · [lineIntersectsObjs](../commands/lineIntersectsObjs.md) · [checkVisibility](../commands/checkVisibility.md)

## Community notes

**POLPOX** — 2023-12-10

This command will tell you that it finds an intersect if either of argument position is under the sea eg `[0,0,-10]` even if there is no clear intersection with a terrain surface between them.

<sub>Source: [BI Community Wiki — terrainIntersectAtASL](https://community.bistudio.com/wiki/terrainIntersectAtASL) (revision 377440).</sub>
