sm.garage.createGarage

Creates a new garage.

Kind: Function

Environments: Game

Game

sm.garage.createGarage( garageId, worldId, halfextents, position )

Open the full Game reference

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:

Name Type Description
garageId int The id of the garage to create
worldId uint The world the garage is in
halfextents Vec3 Half extents of the spawnbox inside the garage
position Vec3 Position of the spawn box inside the garage

Returns:

Name Type Description
Garage Garage The Garage object