Thread: Compass Events
View Single Post
07/28/14, 03:37 PM   #11
unLeashed3k
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 33
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()

Last edited by unLeashed3k : 07/28/14 at 04:15 PM.
  Reply With Quote