getCursorObjectParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the object under cursor, named selection pointed at as well as distance to the object. |= 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 then 50 meters, selections are always an empty array and distance is 1e10 (10^10). |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''getCursorObjectParams''' |= Syntax
| '''getCursorObjectParams''' |= Syntax


| [[Array]] - [cursorObject, cursorObjectNamedSel, distToCursorObject] |= RETURNVALUE  
| [[Array]] - [cursorObject, selections, distance] |= RETURNVALUE  





Revision as of 12:44, 11 August 2017

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 then 50 meters, selections are always an empty array and distance is 1e10 (10^10).
Groups:
Uncategorised

Syntax

Syntax:
getCursorObjectParams
Return Value:
Array - [cursorObject, selections, distance]

Examples

Example 1:
hint str getCursorObjectParams;

Additional Information

See also:
cursorObjectcursorTarget

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