Issues with creating a Dialog (Lua)

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
So the issue is weird. This code works as it should:
Lua:
function Test()
    DialogTest = DialogCreate()
    DialogAddButtonBJ(DialogTest, "TEST")
    DialogDisplayBJ(true, DialogTest, Player(0))
end
It creates the Dialog and everything works fine.

However, the problem occurs when trying to run the Test() function inside of another function. It simply doesn't work.
Lua:
function AnotherFunction()
    Test()
end
^ This doesn't work for whatever reason.

Any ideas?
 
Last edited:
Status
Not open for further replies.
Top