GBX.lua.FlagStand (Object): Difference between revisions
Pizzaboxer (talk | contribs) (Created page with "{{CatUp|Class reference}} The FlagStand is like a Part, but it holds a Flag on it. If the player carrying a flag steps ont...") |
mNo edit summary |
||
Line 67: | Line 67: | ||
*[[Touched (Event)|Touched]] | *[[Touched (Event)|Touched]] | ||
[[Category: | [[Category:GoodBlox Lua Objects]] |
Latest revision as of 20:04, 23 September 2021
The FlagStand is like a Part, but it holds a Flag on it.
If the player carrying a flag steps onto another FlagStand of a different team color, the flag will be removed from the player's backpack and a point will be added to the team. The flag will then regenerate at the originating flag stand.
Functions
In addition to the global functions, the FlagStand also has the following functions:
Properties
In addition to the global properties, the FlagStand also has these properties:
- Anchored
- BrickColor
- CFrame
- CanCollide
- Controller
- ControllerFlagShown
- Elasticity
- Friction
- Locked
- Position
- Reflectance
- RotVelocity
- Shape
- Size
- TeamColor
- Transparency
- Velocity
- formFactor
Surfaces
Since the FlagStand 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 (Back, Bottom, Front, Left, Right, and Top). Since they all work the same, they are only documented once:
- 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 FlagStand also has these: