View Single Post
04/25/23, 08:46 AM   #15
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 245
ok ive got a nearly working setup here but hitting a snag on the loop.. because of the delay i need to delay the stoploop as well.

Ideally something like this that works would be perfect:

Code:
if MyAddon.travelLoop == false then zo_callLater(function() JumpToGuildMember(displayName), MyAddon.travelLoop = true end, effectDelay) end

I need to get the "MyAddon.travelLoop = true" to fight like instantly after the jumpto like it would in code. Not before and not long after. I supposed I could do another ZO_CallLater for it but would rather not if possible.

**EDIT
Nevermind I see how you did it in your example without the comma.
I think now only issue is passing through the "displayName" through this event"

Code:
EVENT_MANAGER:RegisterForEvent("MyAddon", EVENT_PLAYER_COMBAT_STATE, MyAddon.TeleportPassthroughQueue)
So that when the event fires it passes the original "displayName" used throughout the rest of the function. Then shes ready for serious testing.

Last edited by sinnereso : 04/25/23 at 09:13 AM.
  Reply With Quote