How to trigger functions in game
Hi, have simple question..
Have a code with functions like this: Lua Code:
How do I call _OnEvent in game? I cant get it. Is this via XML? Or should I just call it on top of the code by: Lua Code:
|
xml is not a programming language. It just describes your frames.
You dont need xml for an addon. Addons register for events that should trigger functions. Or you can trigger a timed event. Take a look at SetScript and RegisterEvent. Edit: Keep in mind that functions should be local, too. |
I saw XML file with:
Code:
<Scripts> That makes more sense now. Thank you |
All times are GMT -6. The time now is 08:33 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI