• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore WotLK Creature/Player/Gameobject custom data

I thought i wrote somewhere that you can have variables per player/creature/gameobject?
Or am i totally wrong.

Like

Creature:SomeCustomData("SomeCustomVariable")

Or something in that way.
I can't seem to find information about it.
I think it was for eluna. not sure thought.

Can anyone understand my confusing explanation.
 

Kaev

Super Moderator
I thought i wrote somewhere that you can have variables per player/creature/gameobject?
Or am i totally wrong.

Like

Creature:SomeCustomData("SomeCustomVariable")

Or something in that way.
I can't seem to find information about it.
I think it was for eluna. not sure thought.

Can anyone understand my confusing explanation.

Afaik there is no specific function for something like that.
You could create a table in Lua and add your creature and your variable value to it.
 
Thanks for that i'll look into that.

Hmm i'm so confused where i read what i think i read.
Maybe in my dream xp

Well thanks for the help! both of you
 
Top