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.