terrainIntersect [pos1, pos2]

Operand types

[pos1, pos2]: Array

Type of returned value

Description

Checks for intersection of terrain between two positions.
Returns true if intersects with terrain.
Uses PositionATL

Line of Sight example script using this command on our forums.

Used In

Arma2OA

Example

_doesIntersect = terrainIntersect [position player, position enemy1];
Search OFPEC COMREF