getCursorObjectParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
|arma3|Game name= | |arma3|Game name= | ||
Line 7: | Line 6: | ||
|gr1= Object Detection |GROUP1= | |gr1= Object Detection |GROUP1= | ||
| 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). |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). |DESCRIPTION= | ||
| '''getCursorObjectParams''' |SYNTAX= | | '''getCursorObjectParams''' |SYNTAX= | ||
Line 19: | Line 16: | ||
|x1= <code>[[hint]] [[str]] [[getCursorObjectParams]];</code>|EXAMPLE1= | |x1= <code>[[hint]] [[str]] [[getCursorObjectParams]];</code>|EXAMPLE1= | ||
| [[cursorObject]], [[cursorTarget]]|SEEALSO= | | [[cursorObject]], [[cursorTarget]]|SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 01:20, 17 January 2021
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 - [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