{"name":"cursorObject","operator":null,"title":"cursorObject","type":"command","url":"https://community.bistudio.com/wiki/cursorObject","revid":341004,"updated":"2023-05-13T22:06:20Z","groups":["Object Detection"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.56"}],"since":{"game":"arma3","name":"Arma 3","version":"1.56"},"arma3_since":"1.56","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the object under cursor. This command is quite different from cursorTarget as it is more precise in determining the boundaries of the pointed at object and can detect a larger variety of objects including map objects and trees.","syntaxes":[{"syntax":"cursorObject","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Object","types":["Object"],"description":null,"text":"Object"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nhint str [getModelInfo cursorObject, typeOf cursorObject];\n```","code":["hint str [getModelInfo cursorObject, typeOf cursorObject];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getCursorObjectParams","cursorTarget","lineIntersects","lineIntersectsWith","lineIntersectsObjs","lineIntersectsSurfaces","intersect","checkVisibility"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Detection","Introduced with Arma 3 version 1.56","Scripting Commands"]}