[DiscordArchive] would you use SetData when the object is spawned, yes?
[DiscordArchive] would you use SetData when the object is spawned, yes?
Archived author: Barnes • Posted: 2023-08-17T01:02:08.669000+00:00
Original source
i missed the WoW emulation scene. It’s been like 11 years since I was involved but it’s as helpful as ever. Thanks you two, greatly appreciated
Archived author: Foe • Posted: 2023-08-17T01:02:51.295000+00:00
Original source
```Lua
-- script 1
local sometable = {}
local function localExposeTable()
return sometable
end
function globalExposeTable()
return sometable
end
-- script 2
-- sometable is not available here, since it is a local in script 1
-- in this case, localExposeTable would be nil, since it is local in script 1
t = localExposeTable()
-- in this case, t would be sometable since globalExposeTable is not local
t = globalExposeTable()```