---
name: "getCursorObjectParams"
type: command
status: ok
groups: ["Object Detection"]
arma3_since: "1.70"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getCursorObjectParams
revid: 364830
updated: 2024-06-16T09:59:43Z
---

# getCursorObjectParams

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

## 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).

## Syntax

```sqf
getCursorObjectParams
```

**Returns:** [Array](../topics/Array.md) with [cursorObject, selections, distance]
- cursorObject: [Object](../topics/Object.md)
- selections: [Array](../topics/Array.md) of [String](../topics/String.md)s
- distance: [Number](../topics/Number.md) - distance to object's surface (to the point cursor points at)

## Examples

### Example 1

```sqf
hint str getCursorObjectParams;
```

## See also

[cursorObject](../commands/cursorObject.md) · [cursorTarget](../commands/cursorTarget.md)

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