GBX.lua.Backpack (Object): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
m (removed preliminary to reflect late2010) |
No edit summary |
||
Line 2: | Line 2: | ||
The Backpack object is a container that holds a [[GBX.lua.Player (Object)|Player]]'s inventory. In the current release of GoodBlox, it can hold both [[GBX.lua.HopperBin (Object)|HopperBin]] and [[GBX.lua.Tool (Object)|Tool]] objects. | The Backpack object is a container that holds a [[GBX.lua.Player (Object)|Player]]'s inventory. In the current release of GoodBlox, it can hold both [[GBX.lua.HopperBin (Object)|HopperBin]] and [[GBX.lua.Tool (Object)|Tool]] objects. | ||
[[GBX.lua.Script (Object)|Scripts]] and [[GBX.lua.LocalScript (Object)|LocalScripts]] also run when placed in Backpack. | |||
When a player spawns, the contents of the [[GBX.lua.StarterPack (Object)|StarterPack]] are copied into the Player's Backpack, and the contents of the Backpack are replaced. Once a Player dies, all objects in the Backpack are removed. | When a player spawns, the contents of the [[GBX.lua.StarterPack (Object)|StarterPack]] are copied into the Player's Backpack, and the contents of the Backpack are replaced. Once a Player dies, all objects in the Backpack are removed. |
Revision as of 19:38, 23 September 2021
The Backpack object is a container that holds a Player's inventory. In the current release of GoodBlox, it can hold both HopperBin and Tool objects.
Scripts and LocalScripts also run when placed in Backpack.
When a player spawns, the contents of the StarterPack are copied into the Player's Backpack, and the contents of the Backpack are replaced. Once a Player dies, all objects in the Backpack are removed.
Functions
The Backpack only incorporates global functions.
Properties
The Backpack only incorporates global properties.
Events
The Backpack only incorporates global events.