Originally Posted by Baertram
You can't as the function is local!
local function OnTravelToLeaderPromptReceived()
And the local function OnGroupMemberJoined() as well in line 790
|
OK. Decline callback looks like this
Code:
local function DeclineCallback()
self:RemoveFromIncomingQueue(INTERACT_TYPE_TRAVEL_TO_LEADER)
end
and ZO_PlayerToPlayer:RemoveFromIncomingQueue appears to be global...
How do you think, can I do smth like that...
Register EVENT_GROUP_MEMBER_JOINED
Set callback that waits for example 100 ms (because it says in comments (line 737) that "-- The location of the group leader may not be available immediately", so prompt doesn't appear immediately too.
And then call ZO_PlayerToPlayer:RemoveFromIncomingQueue(INTERACT_TYPE_TRAVEL_TO_LEADER)?