{"name":"terrainIntersectAtASL","operator":null,"title":"terrainIntersectAtASL","type":"command","url":"https://community.bistudio.com/wiki/terrainIntersectAtASL","revid":377440,"updated":"2026-01-02T06:46:49Z","groups":["Math - Geometry"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.68"}],"since":{"game":"arma3","name":"Arma 3","version":"1.68"},"arma3_since":"1.68","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Checks for intersection of terrain between two ASL positions. Same as terrainIntersectASL but returns the intersection ASL position.","syntaxes":[{"syntax":"terrainIntersectAtASL [start, end]","since":null,"effect":null,"exec":null,"params":[{"name":"start","type":"PositionASL","optional":false,"default":null,"description":"start position","types":["PositionASL"],"since":null,"text":"start: PositionASL - start position"},{"name":"end","type":"PositionASL","optional":false,"default":null,"description":"end position","types":["PositionASL"],"since":null,"text":"end: PositionASL - end position"}],"returns":{"type":"PositionASL","types":["PositionASL"],"description":"intersect position","text":"PositionASL - intersect position"},"form":"unary","operator":null,"left":null,"right":{"text":"[start, end]","types":["Array"]}}],"examples":[{"text":"```sqf\n_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];\n```","code":["_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];"]}],"multiplayer":null,"problems":null,"aliases":[],"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."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Math - Geometry","Introduced with Arma 3 version 1.68","Scripting Commands"]}