---
name: "getSelectionBones"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "2.18"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getSelectionBones
revid: 369782
updated: 2024-10-08T15:09:02Z
---

# getSelectionBones

*Command · Object Manipulation · Arma 3 v2.18*

## Description

Returns an array of bone names to which the specified selection is attached.

> [!IMPORTANT]
> This command is relatively slow because it searches in all vertices of every bone.

## Syntax

```sqf
object getSelectionBones [selectionName, LOD]
```

**Parameters:**

- `object`: [Object](../topics/Object.md)
- `selectionName`: [String](../topics/String.md)
- `LOD`: [String](../topics/String.md) or [Number](../topics/Number.md) - can be one of:
  - `"Memory"`
  - `"Geometry"`
  - `"FireGeometry"`
  - `"LandContact"`
  - `"HitPoints"`
  - `"ViewGeometry"`
  When [Number](../topics/Number.md) is used, command searches for a LOD with the same LOD resolution

**Returns:** [Array](../topics/Array.md) of [String](../topics/String.md)s - array of bone names

## See also

[selectionPosition](../commands/selectionPosition.md) · [selectionNames](../commands/selectionNames.md) · [getBoneNames](../commands/getBoneNames.md)

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