Lou Montana
Please note the difference:
- terrainIntersect
- terrainIntersectASL
- lineIntersects
- lineIntersectsWith
- lineIntersectsObjs
- intersect
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Checks for intersection of terrain between two AGL positions. Returns true if intersects with terrain. For ASL variant see terrainIntersectASL.
terrainIntersect [start, end]
Parameters:
start: PositionAGL - start positionend: PositionAGL - end positionReturns: Boolean
_intersects = terrainIntersect [getPos player, getPos chopper];
_intersects = terrainIntersect [position player, position enemy1];
terrainIntersectAtASL · lineIntersectsSurfaces · intersect · lineIntersects · lineIntersectsWith · terrainIntersectASL · lineIntersectsObjs · checkVisibility
Please note the difference:
This command is CPU intensive on the engine, be careful with its use.
This command was changed to ATL and counterpart for ASL was added in build 94049.