GBX.lua.SpawnLocation (Object)
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:
- Anchored
- BrickColor
- CFrame
- CanCollide
- Controller
- ControllerFlagShown
- Elasticity
- Fricton
- Locked
- NetworkOwner
- Position
- Reflectance
- RotVelocity
- Shape
- Size
- Transparence
- Velocity
- formFactor
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::