---
name: "terrainIntersectASL"
type: command
status: ok
groups: ["Math - Geometry"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/terrainIntersectASL
revid: 377458
updated: 2026-01-02T06:47:25Z
---

# terrainIntersectASL

*Command · Math - Geometry · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.62*

## Description

Checks for intersection of terrain between two ASL positions. Returns [true](../commands/true.md) if intersects with terrain.
For AGL variant, see [terrainIntersect](../commands/terrainIntersect.md).

## Syntax

```sqf
terrainIntersectASL [start, end]
```

**Parameters:**

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

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
_intersects = terrainIntersectASL [getPosASL player, getPosASL chopper];
```

### Example 2

```sqf
_intersects = terrainIntersectASL [eyePos player, eyePos enemy1];
```

## See also

[terrainIntersectAtASL](../commands/terrainIntersectAtASL.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

**Lou Montana** — 2012-05-31

Please note the difference:
- terrainIntersect
- terrainIntersectASL
- lineIntersect***s***
- lineIntersect***s***With
- lineIntersect***s***Objs
- intersect

---

**Rocket** — 2012-06-01

This command is CPU intensive on the engine, be careful with its use.

---

**bloodwyn1756** — 2019-03-02

If one of the two positions is below sea level, the command always returns true.

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