View Single Post
04/23/23, 11:10 AM   #9
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 245
OK return false might not work. Ill need to halt the execution of the original "jumpto.." code by a delay required by the individual effect which i cant or dont know how todo without using:

Code:
zo_callLater(function() JumpToFriend(friendName) end, effectDelay)
Otherwise im nearly complete the code tweaks to try it.

with return false.. if i execute the effects the original code will fire the teleport after right away and in most cases wont be able to as the momento is likely still in progress.

is it possible to:

Code:
ZO_PreHook("JumpToFriend", function(displayName)
		MyAddon.TravelToPlayerContext(displayName)
		zo_callLater(function() return false end, effectDelay)
	end)
this might make it doable.

*EDIT
Doesnt appear to delay the return. I guess Ill just bail on the idea.. It woulda been cool but without a Lib or something controlling the original function with some delay options fairly between addons I dont think its going to work.

Last edited by sinnereso : 04/23/23 at 11:58 AM.
  Reply With Quote