Thread Tools Display Modes
05/01/14, 10:44 AM   #1
Sternentau
board director
 
Sternentau's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 17
How to make sure game is loaded and player ready 4 action?

I do have the problem that i would like to send the player some kind of greeting message or game information using CHAT_SYSTEM:AddMessage("Welcome " .. GetUnitName("player")) after he has entered the world.

But i have found that mostly this greeting is not displayed.
Now i think this is because the loading screen is still active even if the <OnUpdate>xxx.Update()</OnUpdate> event of my xml-control is already firing.

Is there an event or any other way to make sure that the player is fully in the world, all loading is past and the chatsystem is up and running functionally?

In the moment i am waiting for the GetSecondsPlayed() becomes greater 10, but this is not a good way and sometimes 10 seconds are not enough if the player enters the world - and too long if there was only a /reloadui...
  Reply With Quote
05/01/14, 10:48 AM   #2
Errc
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 30
Event_player_activated
  Reply With Quote
05/01/14, 11:48 AM   #3
Sternentau
board director
 
Sternentau's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 17
perfect - thank you!
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » How to make sure game is loaded and player ready 4 action?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off