Jump to navigation Jump to search
- Checks for intersection of terrain between two AGL positions. Returns true if intersects with terrain. For ASL variant see terrainIntersectASL.
- Math - Geometry
- terrainIntersect [start, end]
- start: Array format PositionAGL - start position
- end: Array format PositionAGL - end position
- Return Value:
- Example 1:
_intersects = terrainIntersect [getPos player, getPos chopper];
- Example 2:
_intersects = terrainIntersect [position player, position enemy1];
- See also:
- Posted on May 31, 2012 - 10:40 (UTC)
- Lou Montana
- Please note the difference:
- Posted on Jun 01, 2012 - 15:55 (UTC)
- This command is CPU intensive on the engine, be careful with its use.
- Posted on Jun 23, 2012 - 17:15 (UTC)
- This command was changed to ATL and counterpart for ASL was added in build 94049.