Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/10/21, 06:26 AM   #1
Aaxc
 
Aaxc's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2019
Posts: 19
Trouble reading LibMapsPings

Hey,
I have set up a short mapPing event:

local LMP = LibMapPing

function CombatCallbacks(...)
if (...) then
LMP:SetMapPing(MAP_PIN_TYPE_PING, MAP_TYPE_LOCATION_CENTERED, 50, 50)
end
end
I have also registered the events:

function PingAdded(pingType, pingTag, offsetX, offsetY, isLocalPlayerOwner)
d(pingType)
d(pingTag)
d(offsetX)
d(offsetY)
d(isLocalPlayerOwner)
end

EVENT_MANAGER:RegisterForEvent(AddonName, EVENT_COMBAT_EVENT, CombatCallbacks)
-- EVENT_MANAGER:RegisterForEvent(AddonName, EVENT_MAP_PING, PingAdded) -- Does not trigger
LMP:RegisterCallback("AfterPingAdded", PingAdded)

Now, the event does trigger if I'm the one initializing it, but how do I read this from another account? As a group member of course.

Last edited by Aaxc : 03/10/21 at 07:41 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Trouble reading LibMapsPings


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off