lua:scripting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| lua:scripting [2022/11/12 16:21] – [Functions] utedass | lua:scripting [2022/11/12 22:12] (current) – [Examples] utedass | ||
|---|---|---|---|
| Line 126: | Line 126: | ||
| <code lua> | <code lua> | ||
| -- Create a frame and register this frame to run code on an event. | -- Create a frame and register this frame to run code on an event. | ||
| + | local function PrintStuff() | ||
| + | print(" | ||
| + | end | ||
| + | |||
| local EventFrame = CreateFrame(" | local EventFrame = CreateFrame(" | ||
| EventFrame: | EventFrame: | ||
| Line 131: | Line 135: | ||
| EventFrame: | EventFrame: | ||
| if(event == " | if(event == " | ||
| - | ChatFrame1: | + | C_Timer.After(1, PrintStuff) |
| end | end | ||
| end) | end) | ||
| </ | </ | ||
lua/scripting.1668270116.txt.gz · Last modified: 2022/11/12 16:21 by utedass
