getCursorObjectParams

From Bohemia Interactive Community
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns object and named selections under cursor and distance to object's surface (to the point cursor points at). If object surface is further away than 50 meters, selections are always an empty array and distance is 1e10 (10^10).
Groups:
Object Detection

Syntax

Syntax:
getCursorObjectParams
Return Value:
Array with [cursorObject, selections, distance]
  • cursorObject: Object
  • selections: Array of Strings
  • distance: Number - distance to object's surface (to the point cursor points at)

Examples

Example 1:
hint str getCursorObjectParams;

Additional Information

See also:
cursorObject cursorTarget

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