#Dealing Cards to Spots on the Table
1 messages · Page 1 of 1 (latest)
.
Creating Zone Reference Table
- Create a table of the zones GUID
- During
onLoad, retrieve the references to these zones, store them in some manner in a new table. E.g.:
local myZoneGUIDs = {
"asd123",
"qwe456",
-- ...
}
local myZoneTable = {}
function onLoad()
for i, zoneGUID in ipairs(myZoneGUIDs) do
local zone = getObjectFromGUID(zoneGUID)
table.insert(myZoneTable, zone)
end
-- myZoneTable is ready to be used onwards
end
Dealing Cards to Spots on the Table