Arma 3 Scripting

terrainIntersectASL

  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.62

Command · Markdown · JSON · original wiki page

Description

Checks for intersection of terrain between two ASL positions. Returns true if intersects with terrain. For AGL variant, see terrainIntersect.

Syntax

terrainIntersectASL [start, end]

Parameters:

Returns: Boolean

Examples

Example 1

_intersects = terrainIntersectASL [getPosASL player, getPosASL chopper];

Example 2

_intersects = terrainIntersectASL [eyePos player, eyePos enemy1];

See also

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

Community notes

Lou Montana

Please note the difference:

  • terrainIntersect
  • terrainIntersectASL
  • lineIntersects
  • lineIntersectsWith
  • lineIntersectsObjs
  • intersect

Rocket

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

bloodwyn1756

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