{"name":"cursorObject","title":"cursorObject","type":"command","url":"https://community.bistudio.com/wiki/cursorObject","revid":379328,"updated":"2026-10-30T23:51:54Z","groups":["Object Detection"],"status":"ok","games":{"arma3":"1.56"},"since":"arma3 1.56","arma3_since":"1.56","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","params":[],"returns":{"type":"Object","type_expr":"Object"},"form":"nullary"}],"examples":[{"code":["hint str [getModelInfo cursorObject, typeOf cursorObject];"]}],"see_also":["getCursorObjectParams","cursorTarget","lineIntersects","lineIntersectsWith","lineIntersectsObjs","lineIntersectsSurfaces","intersect","checkVisibility"],"notes":[{"user":"Pierre MGI","date":"2015-03-23T18:17:00Z","text":"If you point at the primary weapon of an infantry unit, cursorObject will return the p3d of the weapon instead of the unit itself (B Alpha 1-2:1.. or its variable name ). That doesn't occur for anything else (backpack or headgear)."}]}