Arma 3 Scripting

Function in Geometry

BIS_fnc_getIntersectionsUnderCursor

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns intersections under cursor. For more information see lineIntersectsSurfaces.

Syntax

[screenX, screenY, ignoreObj1, ignoreObj2, sortMode, maxResults, LOD1, LOD2] call BIS_fnc_getIntersectionsUnderCursor

Parameters:

Returns: Array of intersections in format [[intersectPosASL, surfaceNormal, intersectObj, parentObject, selectionNames, pathToBisurf], ...] where:

Examples

Example 1

[0.5, 0.5, player, objNull, true, "VIEW"] call BIS_fnc_getIntersectionsUnderCursor;

See also

lineIntersectsSurfaces