Skip to content

DataPool

Anthony Headley edited this page May 19, 2020 · 1 revision

DataPool() : Pool

Brief:

Returns a Pool Data Object that can be used to get referance to Datapool items

Paramiters:

Name Type Description Optional

Returns:

Type Description
Pool This object represents the current users pool items

Examples:

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
Clone this wiki locally