View Single Post
01/26/16, 12:42 PM   #5
coolmodi
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 47
Originally Posted by haggen View Post
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:
  1. local function OnPlayerActive()
  2.     d("sdghskdg")
  3. end
  4.  
  5. EVENT_MANAGER:RegisterForEvent("MyAddOn", EVENT_PLAYER_ACTIVATED, OnPlayerActive)
  Reply With Quote