getCursorObjectParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (typo) |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| '''getCursorObjectParams''' |= Syntax | | '''getCursorObjectParams''' |= Syntax | ||
| [[Array]] - [cursorObject, selections, distance] |= | | [[Array]] - [cursorObject, selections, distance] |RETURNVALUE= | ||
|x1= <code>[[hint]] [[str]] [[getCursorObjectParams]];</code>|= | |x1= <code>[[hint]] [[str]] [[getCursorObjectParams]];</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[cursorObject]], [[cursorTarget]]|= | | [[cursorObject]], [[cursorTarget]]|SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:31, 7 April 2019
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:
- 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