---
name: "BIS_fnc_getUnitByUID"
type: function
status: ok
groups: ["Multiplayer"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_getUnitByUID
revid: 327051
updated: 2022-07-12T21:44:46Z
---

# BIS_fnc_getUnitByUID

*Function · Multiplayer · Arma 3 v1.00*

## Description

Returns player-controlled unit (if any) according to the provided [player UID](../commands/getPlayerUID.md).

## Syntax

```sqf
playerUID call BIS_fnc_getUnitByUID
```

**Parameters:**

- `playerUID`: [String](../topics/String.md) - see [getPlayerUID](../commands/getPlayerUID.md)

**Returns:** [Object](../topics/Object.md) - the unit controlled by *playerUID* player

## Examples

### Example 1

```sqf
private _unitPlayedByUID550055 = "550055" call BIS_fnc_getUnitByUID;
```

## See also

[getPlayerUID](../commands/getPlayerUID.md)

<sub>Source: [BI Community Wiki — BIS fnc getUnitByUID](https://community.bistudio.com/wiki/BIS_fnc_getUnitByUID) (revision 327051).</sub>
