getCursorObjectParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *('''[a-zA-Z0-9]+''') \|r1=" to " \|s1= $1 |r1=") |
BrettMayson (talk | contribs) mNo edit summary |
||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
|arma3 | |game1= arma3 | ||
|version1= 1.70 | |||
|1.70 | |||
|gr1= Object Detection | |gr1= Object Detection | ||
| 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). | |descr= 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). | ||
|s1= '''getCursorObjectParams''' | |||
|r1=[[Array]] | |r1= [[Array]] with [cursorObject, selections, distance] | ||
* cursorObject: [[Object]] | |||
* selections: [[Array]] of [[String]]s | |||
* distance: [[Number]] - distance to object's surface (to the point cursor points at) | |||
|x1= < | |x1= <sqf>hint str getCursorObjectParams;</sqf> | ||
|seealso= [[cursorObject]] | |seealso= [[cursorObject]] [[cursorTarget]] | ||
}} | }} |
Latest revision as of 10:59, 16 June 2024
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]
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