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...
|