GBX.lua.SpawnLocation (Object): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(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...")
 
mNo edit summary
 
Line 1: Line 1:
{{CatUp|Class reference}}
{{CatUp|Class reference}}
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.
__NOTOC__
__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 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==
==Functions==
In addition to the global functions, the SpawnLocation also has the following functions:
In addition to the global functions, the SpawnLocation also has the following functions:
Line 72: Line 70:
* [[Touched]]
* [[Touched]]


[[Category:Goodblox Lua Objects]]
[[Category:GoodBlox Lua Objects]]

Latest revision as of 20:16, 23 September 2021

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::