Warning: file_put_contents(/ff_db77056703e84c4711cacfbd23a84e26314ef939d6fb8404.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
terrainIntersect - OFPEC Scripting Command Reference | OFPEC The Editing Center

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];

Advertisement