Originally Posted by haggen
Also d() doesn't work at startup because (I think) the chat isn't available at that point (d() prints at the chat window).
|
To still output things after "start" you can use the EVENT_PLAYER_ACTIVATED, at least that's what I did.
Lua Code:
local function OnPlayerActive()
d("sdghskdg")
end
EVENT_MANAGER:RegisterForEvent("MyAddOn", EVENT_PLAYER_ACTIVATED, OnPlayerActive)