GBX.lua.Flag (Object): Difference between revisions
(Created page with "{{CatUp|Class reference}} __NOTOC__ The Flag is a unit spawned with a FlagStand object, and will respawn when captured. When a player touches...") |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{CatUp|Class reference}} | {{CatUp|Class reference}} | ||
The Flag is a unit spawned with a [[GBX.lua.FlagStand (Object)|FlagStand]] object, and will respawn when captured. | The Flag is a unit spawned with a [[GBX.lua.FlagStand (Object)|FlagStand]] object, and will respawn when captured. | ||
Line 9: | Line 7: | ||
This allows for CTF games very easily, which was the reason for it's creation. | This allows for CTF games very easily, which was the reason for it's creation. | ||
==Functions== | ==Functions== | ||
The Flag only incorporates the global functions. | The Flag only incorporates the global functions. | ||
==Properties== | ==Properties== | ||
In addition to the Global properties, the Flag also has these: | In addition to the Global properties, the Flag also has these: | ||
*[[Enabled]] | *[[Enabled (Property)|Enabled]] | ||
*[[GripForward]] | *[[GripForward (Property)|GripForward]] | ||
*[[GripPos]] | *[[GripPos (Property)|GripPos]] | ||
*[[GripRight]] | *[[GripRight (Property)|GripRight]] | ||
*[[GripUp]] | *[[GripUp (Property)|GripUp]] | ||
*[[TeamColor]] | *[[TeamColor (Property)|TeamColor]] | ||
*[[TextureId]] | *[[TextureId (Property)|TextureId]] | ||
==Events== | ==Events== | ||
In addition to the Global events, the Flag also has these: | In addition to the Global events, the Flag also has these: | ||
*[[Activated]] | *[[Activated (Event)|Activated]] | ||
*[[Deactivated]] | *[[Deactivated (Event)|Deactivated]] | ||
*[[Equipped]] | *[[Equipped (Event)|Equipped]] | ||
*[[Unequipped]] | *[[Unequipped (Event)|Unequipped]] | ||
[[Category: | [[Category:GoodBlox Lua Objects]] |
Latest revision as of 20:03, 23 September 2021
The Flag is a unit spawned with a FlagStand object, and will respawn when captured.
When a player touches this object's Handle, which must be a child of the Flag object, which is a Part names "Handle", the flag will be added to the player's backpack and will appear in their hand. A player cannot select other weapons while carrying a flag, and can drop the flag at anytime by pressing "Backspace" on the keyboard.
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.
This allows for CTF games very easily, which was the reason for it's creation.
Functions
The Flag only incorporates the global functions.
Properties
In addition to the Global properties, the Flag also has these:
Events
In addition to the Global events, the Flag also has these: