Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-07-20, 04:42 PM   #1
lungdesire
A Deviate Faerie Dragon
Join Date: May 2020
Posts: 13
How to send arguments in OnEvent?

Hello everyone. How to send arguments in OnEvent?

Code:
h = { "hello", "bye" }

for key, val in pairs(h) do
-- How send "hello" and "bye" in OnEvent ? 
end

local function OnEvent(self, event, ...)
print(arg1)
end

local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", OnEvent)

Last edited by lungdesire : 11-08-20 at 04:20 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to send arguments in OnEvent?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off