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 ASL positions. Returns true if intersects with terrain. For AGL variant, see terrainIntersect.
terrainIntersectASL [start, end]
Parameters:
start: PositionASL - start positionend: PositionASL - end positionReturns: Boolean
_intersects = terrainIntersectASL [getPosASL player, getPosASL chopper];
_intersects = terrainIntersectASL [eyePos player, eyePos enemy1];
terrainIntersectAtASL · lineIntersectsSurfaces · intersect · lineIntersects · lineIntersectsWith · terrainIntersect · lineIntersectsObjs · checkVisibility
Please note the difference:
This command is CPU intensive on the engine, be careful with its use.
If one of the two positions is below sea level, the command always returns true.