terrainIntersectAtASL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>")
Line 19: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_posASL = [[terrainIntersectAtASL]] <nowiki>[</nowiki>[[eyePos]] [[player]], [[getPosASL]] chopper];</code> |EXAMPLE1=
|x1= <code>_posASL = [[terrainIntersectAtASL]] [<nowiki/>[[eyePos]] [[player]], [[getPosASL]] chopper];</code> |EXAMPLE1=


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 12:32, 19 March 2020

Hover & click on the images for description

Description

Description:
Checks for intersection of terrain between two ASL positions. Same as terrainIntersectASL, only returns intersect position instead of Boolean
Groups:
Uncategorised

Syntax

Syntax:
terrainIntersectAtASL [pos1, pos2]
Parameters:
[pos1, pos2]: Array
pos1: Array - start position in format PositionASL
pos2: Array - end position in format PositionASL
Return Value:
Array - intersect position in format PositionASL

Examples

Example 1:
_posASL = terrainIntersectAtASL [eyePos player, getPosASL chopper];

Additional Information

See also:
terrainIntersectASLlineIntersectsSurfacesintersectlineIntersectslineIntersectsWithterrainIntersectlineIntersectsObjscheckVisibility

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section