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): 1 2 Next
rektbyfaith
Administrator
0
08-17-2023, 12:51 AM
#1
Archived author: Barnes • Posted: 2023-08-17T00:51:30.398000+00:00
Original source

would you use SetData when the object is spawned, yes?
rektbyfaith
08-17-2023, 12:51 AM #1

Archived author: Barnes • Posted: 2023-08-17T00:51:30.398000+00:00
Original source

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

rektbyfaith
Administrator
0
08-17-2023, 12:52 AM
#2
Archived author: Foe • Posted: 2023-08-17T00:52:14.055000+00:00
Original source

I'd use it anywhere you currently use global tables, that said you shouldn't really use global tables unless you are planning to read/edit that data in a separate script
rektbyfaith
08-17-2023, 12:52 AM #2

Archived author: Foe • Posted: 2023-08-17T00:52:14.055000+00:00
Original source

I'd use it anywhere you currently use global tables, that said you shouldn't really use global tables unless you are planning to read/edit that data in a separate script

rektbyfaith
Administrator
0
08-17-2023, 12:52 AM
#3
Archived author: Vale the Violet Mote • Posted: 2023-08-17T00:52:23.166000+00:00
Original source

he's saying you should store the data about the incursion's state on the map where it's occurring
rektbyfaith
08-17-2023, 12:52 AM #3

Archived author: Vale the Violet Mote • Posted: 2023-08-17T00:52:23.166000+00:00
Original source

he's saying you should store the data about the incursion's state on the map where it's occurring

rektbyfaith
Administrator
0
08-17-2023, 12:52 AM
#4
Archived author: Foe • Posted: 2023-08-17T00:52:28.076000+00:00
Original source

Always localize anything unless you are writing an extension or helper function
rektbyfaith
08-17-2023, 12:52 AM #4

Archived author: Foe • Posted: 2023-08-17T00:52:28.076000+00:00
Original source

Always localize anything unless you are writing an extension or helper function

rektbyfaith
Administrator
0
08-17-2023, 12:54 AM
#5
Archived author: Barnes • Posted: 2023-08-17T00:54:46.914000+00:00
Original source

Okay, except for like the global tables that i have built right?? Those need to stay global so they can be access by all functions? or am i not quite understanding Lua properly
rektbyfaith
08-17-2023, 12:54 AM #5

Archived author: Barnes • Posted: 2023-08-17T00:54:46.914000+00:00
Original source

Okay, except for like the global tables that i have built right?? Those need to stay global so they can be access by all functions? or am i not quite understanding Lua properly

rektbyfaith
Administrator
0
08-17-2023, 12:55 AM
#6
Archived author: Foe • Posted: 2023-08-17T00:55:11.742000+00:00
Original source

No, they don't have to be global unless you want to access them from a different script
rektbyfaith
08-17-2023, 12:55 AM #6

Archived author: Foe • Posted: 2023-08-17T00:55:11.742000+00:00
Original source

No, they don't have to be global unless you want to access them from a different script

rektbyfaith
Administrator
0
08-17-2023, 12:56 AM
#7
Archived author: Foe • Posted: 2023-08-17T00:56:00.735000+00:00
Original source

global means they are globally available in the namespace, local means they are only available from within that script
rektbyfaith
08-17-2023, 12:56 AM #7

Archived author: Foe • Posted: 2023-08-17T00:56:00.735000+00:00
Original source

global means they are globally available in the namespace, local means they are only available from within that script

rektbyfaith
Administrator
0
08-17-2023, 12:58 AM
#8
Archived author: Barnes • Posted: 2023-08-17T00:58:18.239000+00:00
Original source

Oh. Alright i will fiddle around. Thanks
rektbyfaith
08-17-2023, 12:58 AM #8

Archived author: Barnes • Posted: 2023-08-17T00:58:18.239000+00:00
Original source

Oh. Alright i will fiddle around. Thanks

rektbyfaith
Administrator
0
08-17-2023, 12:58 AM
#9
Archived author: Barnes • Posted: 2023-08-17T00:58:39.269000+00:00
Original source

makes sense in the context of you stating the exception for a helper or extension or handler
rektbyfaith
08-17-2023, 12:58 AM #9

Archived author: Barnes • Posted: 2023-08-17T00:58:39.269000+00:00
Original source

makes sense in the context of you stating the exception for a helper or extension or handler

rektbyfaith
Administrator
0
08-17-2023, 01:01 AM
#10
Archived author: Vale the Violet Mote • Posted: 2023-08-17T01:01:06.672000+00:00
Original source

just slap `local` in front of your table definitions
rektbyfaith
08-17-2023, 01:01 AM #10

Archived author: Vale the Violet Mote • Posted: 2023-08-17T01:01:06.672000+00:00
Original source

just slap `local` in front of your table definitions

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