terrainIntersectASL: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9]) *= * <code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 17: | Line 17: | ||
|s1= [[terrainIntersectASL]] [start, end] | |s1= [[terrainIntersectASL]] [start, end] | ||
|p1= start: | |p1= start: [[Position#PositionASL|PositionASL]] - start position | ||
|p2= end: | |p2= end: [[Position#PositionASL|PositionASL]] - end position | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
Latest revision as of 07:47, 2 January 2026
Description
- Description:
- Checks for intersection of terrain between two ASL positions. Returns true if intersects with terrain. For AGL variant, see terrainIntersect.
- Groups:
- Math - Geometry
Syntax
- Syntax:
- terrainIntersectASL [start, end]
- Parameters:
- start: PositionASL - start position
- end: PositionASL - end position
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- terrainIntersectAtASL lineIntersectsSurfaces intersect lineIntersects lineIntersectsWith terrainIntersect lineIntersectsObjs checkVisibility
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
- Posted on May 31, 2012 - 10:40 (UTC)
-
Please note the difference:
- terrainIntersect
- terrainIntersectASL
- lineIntersects
- lineIntersectsWith
- lineIntersectsObjs
- intersect
- Posted on Jun 01, 2012 - 15:55 (UTC)
- This command is CPU intensive on the engine, be careful with its use.
- Posted on Mar 02, 2019 - 20:29 (UTC)
- If one of the two positions is below sea level, the command always returns true.