Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] would you use SetData when the object is spawned, yes?

[DiscordArchive] would you use SetData when the object is spawned, yes?

[DiscordArchive] would you use SetData when the object is spawned, yes?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
08-17-2023, 01:02 AM
#11
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
rektbyfaith
08-17-2023, 01:02 AM #11

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

rektbyfaith
Administrator
0
08-17-2023, 01:02 AM
#12
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()```
rektbyfaith
08-17-2023, 01:02 AM #12

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()```

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)