RBX.lua.SpawnLocation (Object): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
Swapped
>Mr Doom Bringer |
>NXTBoy (Swapped) |
||
Line 1: | Line 1: | ||
{{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 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 these functions: | |||
* [[BreakJoints (Function)|BreakJoints]] | |||
* [[GetMass (Function)|GetMass]] | |||
* [[MakeJoints (Function)|MakeJoints]] | |||
==Properties== | |||
In addition to the global properties, the SpawnLocation also has these properties: | |||
*[[AllowTeamChangeOnTouch]] | |||
*[[Anchored]] | |||
*[[BrickColor (Property)|BrickColor]] | |||
*[[CFrame (Property)|CFrame]] | |||
*[[CanCollide]] | |||
*[[Controller]] | |||
*[[ControllerFlagShown]] | |||
*[[Duration]] | |||
*[[Elasticity]] | |||
*[[Friction]] | |||
*[[Locked]] | |||
*[[Neutral]] | |||
*[[Position]] | |||
*[[Reflectance]] | |||
*[[RotVelocity]] | |||
*[[Shape]] | |||
*[[Size]] | |||
*[[TeamColor]] | |||
*[[Transparency]] | |||
*[[Velocity]] | |||
*[[formFactor]] | |||
These properties have been changed or are no longer used: | |||
*[[CastShadows]] | |||
*[[Cullable]] | |||
==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: | |||
*[[BackParamA]] | |||
*[[BackParamB]] | |||
*[[BackSurface]] | |||
*[[BackSurfaceInput]] | |||
*[[BottomParamA]] | |||
*[[BottomParamB]] | |||
*[[BottomSurface]] | |||
*[[BottomSurfaceInput]] | |||
*[[FrontParamA]] | |||
*[[FrontParamB]] | |||
*[[FrontSurface]] | |||
*[[FrontSurfaceInput]] | |||
*[[LeftParamA]] | |||
*[[LeftParamB]] | |||
*[[LeftSurface]] | |||
*[[LeftSurfaceInput]] | |||
*[[RightParamA]] | |||
*[[RightParamB]] | |||
*[[RightSurface]] | |||
*[[RightSurfaceInput]] | |||
*[[TopParamA]] | |||
*[[TopParamB]] | |||
*[[TopSurface]] | |||
*[[TopSurfaceInput]] | |||
==Events== | |||
In addition to the global events, the SpawnLocation also has these events: | |||
* [[OutfitChanged]] | |||
* [[Touched]] | |||
[[Category:ROBLOX Lua Objects]] |