DataPool - hossimo/GMA3Plugins GitHub Wiki
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