Unit.getId
Returns the id of a unit.
Kind: Function
Environments: Game
Game
unit:getId( )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
unit |
Unit | The unit. |
Returns:
| Type | Description |
|---|---|
| integer | The unit's id. |
Returns the id of a unit.
Kind: Function
Environments: Game
unit:getId( )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
unit |
Unit | The unit. |
Returns:
| Type | Description |
|---|---|
| integer | The unit's id. |