GBX.lua.SpawnLocation (Object)

From Goodblox Wiki
Revision as of 06:50, 11 July 2020 by Brian Griffen (talk | contribs) (Created page with "{{CatUp|Class reference}} __NOTOC__ The '''SpawnLocation''' object is a special type of brick that will make a player on the same team spawn at that location. These can be ma...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


The SpawnLocation object is a special type of brick that will make a player on the same team spawn at that location. These can be made as checkpoints, so that when a player touches it, they will change teams to the spawn location's team. They can also be set to auto assign people who join the game to a team. This will auto-balance people joining amongst the teams. A Team object of the same color will also be added into the Teams container when a spawn location is created.

Functions

In addition to the global functions, the SpawnLocation also has the following functions:

Properties

In addition to the global properties, the SpawnLocation also has these properties:

Surfaces

Since the SpawnLocation is a 3D rendered object, it has surface properties and inputs. There is a Parameter A, B a Surface and a SurfaceInput for each of the 6 sides. Since they all work the same, they are only documented once. Simply place the name of the side in front of the property:

Events

In addition to the global Events, the SpawnLocation also has these events::