{"name":"terrainIntersectAtASL","title":"terrainIntersectAtASL","type":"command","url":"https://community.bistudio.com/wiki/terrainIntersectAtASL","revid":377440,"updated":"2026-01-02T06:46:49Z","groups":["Math - Geometry"],"status":"ok","games":{"arma3":"1.68"},"since":"arma3 1.68","arma3_since":"1.68","description":"Checks for intersection of terrain between two ASL positions. Same as terrainIntersectASL but returns the intersection ASL position.","syntaxes":[{"syntax":"terrainIntersectAtASL [start, end]","params":[{"name":"start","type":"PositionASL","description":"start position","type_expr":"PositionASL"},{"name":"end","type":"PositionASL","description":"end position","type_expr":"PositionASL"}],"returns":{"type":"PositionASL","type_expr":"PositionASL","description":"intersect position"},"form":"unary","right":{"text":"[start, end]"}}],"examples":[{"code":["_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];"]}],"see_also":["terrainIntersectASL","lineIntersectsSurfaces","intersect","lineIntersects","lineIntersectsWith","terrainIntersect","lineIntersectsObjs","checkVisibility"],"notes":[{"user":"POLPOX","date":"2023-12-10T08:55:23Z","text":"This command will tell you that it finds an intersect if either of argument position is under the sea eg `[0,0,-10]` even if there is no clear intersection with a terrain surface between them."}]}