Lua Code:
if MyAddon.travelLoop == false then
MyAddon.travelLoop = true
zo_callLater(function()
MyAddon.travelLoop = true
JumpToGuildMember(displayName)
MyAddon.travelLoop = false
end, effectDelay)
end
Like this?
Will call the zo_callLater only if travelLoop is false.
As the 1st call set's it true BEFORE the zo_callLater AND within before the jump,
and then does the zo_calllater where travelLoop gets reset to false again after the JumpToGuildMember is executed again, you should not have any double attempts that way?
You'd have to test this.
Your call to JumpToGuildMember would start the same code again, where it checks if MyAddon.travelLoop == false -> MyAddon.travelLoop = true
directly before the jump again so it should be always true there if the check is done,
until after the call of JumpToGuildMember where it getsr eset to false