Thread: Compass Events
View Single Post
08/02/14, 02:27 PM   #19
Fyrakin
 
Fyrakin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 129
Originally Posted by unLeashed3k View Post
This object created holds the exact information I want for my addon, I know it, but it will not allow me to access the information.

In /zgoo "GetChild(index)" for ZO_CompassContainer says it's BLACKLISTED. Does that mean it's private?
ZO_CompassContainer:GetChild() - will be BLACKLISTED, because you have to specify index
if there are ZO_CompassContainer:GetNumChildren() > 0 then you can do the following:
Code:
local numChildren = ZO_CompassContainer:GetNumChildren()
	for index=1, numChildren do
		compassPin = ZO_CompassContainer:GetChild(index)
		if compassPin ~= nil then
			-- do whatever you want with the compassPin child object here
		end
	end
  Reply With Quote