sm.garage
Associated object type: Garage
The Garage library contains various utility functions for handling the garage.
Functions:
sm.garage.createGarage(garageId, worldId, halfextents, position)
Creates a new garage.
The garage is a spawn area for creations defined by a bounding box. The garage can track blueprints and import them into the world.
The garage is identified by an user specified id.
Parameters:
| Type | Name | Description |
|---|---|---|
| int | garageId | The id of the garage to create |
| uint | worldId | The world the garage is in |
| Vec3 | halfextents | Half extents of the spawnbox inside the garage |
| Vec3 | position | Position of the spawn box inside the garage |
Returns:
| Type | Description |
|---|---|
| Garage Garage The Garage object |
sm.garage.getGarage(garageId)
Gets a already existing garage returns nil if it does not exist.
Parameters:
| Type | Name | Description |
|---|---|---|
| uint | garageId | The id of the garage to get |
Returns:
| Type | Description |
|---|---|
| Garage Garage The Garage object |