WildStar:API EVENT ChangeWorld: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Bear moved page //API EVENT ChangeWorld to API EVENT ChangeWorld without leaving a redirect)
No edit summary
Line 1: Line 1:
{{../uiapievent}}
{{\"uiapievent}}
The '''ChangeWorld''' global event, used to know when player has changed instances. Must register to receive events.
The '''ChangeWorld''' global event, used to know when player has changed instances. Must register to receive events.
   
   
  {{../api||Apollo|RegisterEventHandler}}("ChangeWorld", "OnChangeWorld", self)
  {{\|api||Apollo|RegisterEventHandler}}("ChangeWorld", "OnChangeWorld", self)
  function MyAddOn:OnChangeWorld()
  function MyAddOn:OnChangeWorld()



Revision as of 07:23, 9 August 2023

Template:\"uiapievent The ChangeWorld global event, used to know when player has changed instances. Must register to receive events.

Apollo.RegisterEventHandler("ChangeWorld", "OnChangeWorld", self)
function MyAddOn:OnChangeWorld()

Usage

Parameters
Returns

Summary

This event fires after player has changed instance servers, like when entering or exiting a dungeon. Does not fire when player first enters game world from the character screen, as the UI and AddOns load after the player has entered. AddOns must register for this event. Does not fire when UI is reloaded.