Arma 3 Scripting

terrainIntersectAtASL

  • Arma 3 v1.68

Command · Markdown · JSON · original wiki page

Description

Checks for intersection of terrain between two ASL positions. Same as terrainIntersectASL but returns the intersection ASL position.

Syntax

terrainIntersectAtASL [start, end]

Parameters:

Returns: PositionASL - intersect position

Examples

Example 1

_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];

See also

terrainIntersectASL · lineIntersectsSurfaces · intersect · lineIntersects · lineIntersectsWith · terrainIntersect · lineIntersectsObjs · checkVisibility

Community notes

POLPOX

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.