terrainIntersectAtASL: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Update)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]], only returns intersect position instead of [[Boolean]] |= Description
| Checks for intersection of terrain between two ASL positions. Same as [[terrainIntersectASL]], only returns intersect position instead of [[Boolean]] |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''terrainIntersectAtASL''' [pos1, pos2] |= Syntax
| '''terrainIntersectAtASL''' [pos1, pos2] |SYNTAX=


|p1= [pos1, pos2]: [[Array]]|= Parameter 1
|p1= [pos1, pos2]: [[Array]]|PARAMETER1=
|p2= pos1: [[Array]] - start position in format [[PositionASL]]|= Parameter 2
|p2= pos1: [[Array]] - start position in format [[PositionASL]]|PARAMETER2=
|p3= pos2: [[Array]] - end position in format [[PositionASL]]|= Parameter 3
|p3= pos2: [[Array]] - end position in format [[PositionASL]]|PARAMETER3=


| [[Array]] - intersect position in format [[PositionASL]] |= Return value
| [[Array]] - intersect position in format [[PositionASL]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_posASL = [[terrainIntersectAtASL]] <nowiki>[</nowiki>[[eyePos]] [[player]], [[getPosASL]] chopper];</code> |= Example 1
|x1= <code>_posASL = [[terrainIntersectAtASL]] <nowiki>[</nowiki>[[eyePos]] [[player]], [[getPosASL]] chopper];</code> |EXAMPLE1=


____________________________________________________________________________________________
____________________________________________________________________________________________


|[[terrainIntersectASL]], [[lineIntersectsSurfaces]], [[intersect]], [[lineIntersects]], [[lineIntersectsWith]], [[terrainIntersect]], [[lineIntersectsObjs]], [[checkVisibility]] |= See also
|[[terrainIntersectASL]], [[lineIntersectsSurfaces]], [[intersect]], [[lineIntersects]], [[lineIntersectsWith]], [[terrainIntersect]], [[lineIntersectsObjs]], [[checkVisibility]] |SEEALSO=


}}
}}

Revision as of 14:50, 7 April 2019

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