-
-
Notifications
You must be signed in to change notification settings - Fork 5
DataPool
Anthony Headley edited this page May 19, 2020
·
1 revision
DataPool() : Pool
Returns a Pool Data Object that can be used to get referance to Datapool items
Name | Type | Description | Optional |
---|
Type | Description |
---|---|
Pool | This object represents the current users pool items |
local worlds = DataPool().Worlds -- pointer to the worlds collection
local world1 = worlds:Children()[1] -- pointer to the first world pool item
Echo ("World 1 is named " ..world1.name) -- World 1 is named Full
Cmd("Store World 2") -- Store a world in index 2
DataPool().Worlds:Children()[2].name = "Second World" -- Change it's name