#PLAYER_LOGIN trigger

12 messages · Page 1 of 1 (latest)

jaunty dawn
#

Hey probably a really stupid question but can somebody explain why this function does not fire on PLAYER_LOGIN?

obtuse carbon
#

Without testing, that event probably fires too soon?

jaunty dawn
#

And how can I avoid that? I want to send acecomm msg on player login, but not on entering world

obtuse carbon
#

Use a different event like PLAYER_ENTERING_WORLD and check the payload

#

That is also potentially too soon and you need the delayed one

jaunty dawn
#

does the payload differ on login / entering dungeon?

obtuse carbon
#

Yes

jaunty dawn
#

oooh

#

well thats a nice hint

#

I will try that, thank you

#

local function OnEvent(self, event, isLogin, isReload)
if isLogin or isReload then
print("loaded the UI")
else
print("zoned between map instances")
end
end

could ve just searched it facepalm

#

that works, thanks!