getCursorObjectParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] +\[\[([a-zA-Z0-9_]+)\]\] +\[\[([a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1 $2 $3;</sqf>") |
||
Line 12: | Line 12: | ||
|r1= [[Array]] - [cursorObject, selections, distance] | |r1= [[Array]] - [cursorObject, selections, distance] | ||
|x1= < | |x1= <sqf>hint str getCursorObjectParams;</sqf> | ||
|seealso= [[cursorObject]] [[cursorTarget]] | |seealso= [[cursorObject]] [[cursorTarget]] | ||
}} | }} |
Revision as of 14:10, 5 May 2022
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:
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