getCursorObjectParams: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
mNo edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


|arma3|Game name=
|game1= arma3
|version1= 1.70


|1.70|Game version=
|gr1= Object Detection


|gr1= Object Detection |GROUP1=
|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).


| 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=
|s1= '''getCursorObjectParams'''


| '''getCursorObjectParams''' |SYNTAX=
|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)


| [[Array]] - [cursorObject, selections, distance] |RETURNVALUE=  
|x1= <sqf>hint str getCursorObjectParams;</sqf>


 
|seealso= [[cursorObject]] [[cursorTarget]]
|x1= <code>[[hint]] [[str]] [[getCursorObjectParams]];</code>|EXAMPLE1=
 
 
| [[cursorObject]], [[cursorTarget]]|SEEALSO=
 
|  |MPBEHAVIOUR=
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|New Scripting Commands}}

Latest revision as of 10:59, 16 June 2024

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 with [cursorObject, selections, distance]
  • cursorObject: Object
  • selections: Array of Strings
  • distance: Number - distance to object's surface (to the point cursor points at)

Examples

Example 1:
hint str getCursorObjectParams;

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