{"name":"getCursorObjectParams","operator":null,"title":"getCursorObjectParams","type":"command","url":"https://community.bistudio.com/wiki/getCursorObjectParams","revid":364830,"updated":"2024-06-16T09:59:43Z","groups":["Object Detection"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.70"}],"since":{"game":"arma3","name":"Arma 3","version":"1.70"},"arma3_since":"1.70","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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).","syntaxes":[{"syntax":"getCursorObjectParams","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Array with [cursorObject, selections, distance]","types":["Array"],"description":"cursorObject: Object - selections: Array of Strings - distance: Number - distance to object's surface (to the point cursor points at)","text":"Array with [cursorObject, selections, distance]\n- cursorObject: Object\n- selections: Array of Strings\n- distance: Number - distance to object's surface (to the point cursor points at)"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nhint str getCursorObjectParams;\n```","code":["hint str getCursorObjectParams;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["cursorObject","cursorTarget"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Detection","Introduced with Arma 3 version 1.70","Scripting Commands"]}