# Unit.id

Returns the id of a unit.

**Kind:** Member

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Userdata/Unit.md#id)

### Get

**Availability:** Server only

Returns the id of a unit.

**Returns:**

| Type | Description |
| --- | --- |
| integer | The unit's id. |
