Thread: Compass Events
View Single Post
07/28/14, 04:53 PM   #12
Fyrakin
 
Fyrakin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 129
Originally Posted by unLeashed3k View Post
Lua Code:
  1. function YYZ.doIt()
  2.     for i = 1, ZO_CompassContainer:GetNumChildren() do
  3.        local description, type, distance, drawLayer, suppressed = ZO_CompassContainer:GetCenterOveredPinInfo(i)
  4.        if description ~= "" then
  5.            d(string.format("%s is type: %d", description, type))
  6.         end
  7.     end
  8. end

So happy! Got this outputting what I want to get started. Thank you a million times for getting me on track. I'll try to keep the amateur questions to a minimum now that I have one foothold on this mountain. ha!



Edit: just wish there was a function to gather all marker pins on the compass rather than just the markers the avatar is directly facing; something like ZO_CompassContainer:GetAllPinInfo()
Well, Compass doesn't hold that much info, you would need ZO_WorldMapContainer, which holds all pins.
  Reply With Quote