---
name: "cursorObject"
type: command
status: ok
groups: ["Object Detection"]
arma3_since: "1.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/cursorObject
revid: 341004
updated: 2023-05-13T22:06:20Z
---

# cursorObject

*Command · Object Detection · Arma 3 v1.56*

## Description

Returns the object under cursor. This command is quite different from [cursorTarget](../commands/cursorTarget.md) 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.

## Syntax

```sqf
cursorObject
```

**Returns:** [Object](../topics/Object.md)

## Examples

### Example 1

```sqf
hint str [getModelInfo cursorObject, typeOf cursorObject];
```

## See also

[getCursorObjectParams](../commands/getCursorObjectParams.md) · [cursorTarget](../commands/cursorTarget.md) · [lineIntersects](../commands/lineIntersects.md) · [lineIntersectsWith](../commands/lineIntersectsWith.md) · [lineIntersectsObjs](../commands/lineIntersectsObjs.md) · [lineIntersectsSurfaces](../commands/lineIntersectsSurfaces.md) · [intersect](../commands/intersect.md) · [checkVisibility](../commands/checkVisibility.md)

<sub>Source: [BI Community Wiki — cursorObject](https://community.bistudio.com/wiki/cursorObject) (revision 341004).</sub>
