getCursorObjectParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
Line 22: Line 22:
}}
}}


<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|New Scripting Commands}}

Revision as of 16:37, 18 January 2021

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 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