ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Event for when Fast Travel is complete (https://www.esoui.com/forums/showthread.php?t=7178)

BoarGules 06/29/17 07:03 AM

Event for when Fast Travel is complete
 
I would like to get a notification when characters arrive at their destination after Fast Travel. I thought the event EVENT_FAST_TRAVEL_NETWORK_UPDATED looked promising, but it doesn't seem to fire when I expect it to.

Any ideas?

sirinsidiator 06/29/17 07:11 AM

Don't think there is an explicit event for that.
You could try to hook into the method that starts fasttravel and set a boolean. I think it's save to assume that EVENT_PLAYER_ACTIVATED is fired when you arrive at the destination. Check the boolean in the event handler and you should have what you want.

iwontsay 06/30/17 02:15 PM

Quote:

Originally Posted by sirinsidiator (Post 31666)
Don't think there is an explicit event for that.
You could try to hook into the method that starts fasttravel and set a boolean. I think it's save to assume that EVENT_PLAYER_ACTIVATED is fired when you arrive at the destination. Check the boolean in the event handler and you should have what you want.

It is. I noticed it with a bug in the AddOn "SocialStatus" which failed to deregister itself from the event after being fully logged in. Without this, it resetted my online status whenever I switched areas. That included fast travel or entering or leaving a dungeon or delve.

But if you wish to explicitely catch fast travel and ignore everything else that involves an area transition, sorry, you may be out of luck. There you might have to set a flag when a fast travel is initiated (or register for event listening) and have the event handler do the rest.


All times are GMT -6. The time now is 08:49 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI