View Single Post
07/23/22, 06:01 PM   #1
trollusk
AddOn Author - Click to view addons
Join Date: Nov 2020
Posts: 8
How to get the type of a location?

I'm making an addon that adds pins for certain town services to the compass. These are "Locations" in the API.

Currently I'm figuring out what type each location is by taking the icon filename using GetMapLocationIcon(n), then parsing it to get the filename, then comparing that with the icons for the location types I'm interested in (e.g. if filename == "servicepin_stable.dds")

Is there a better way to get the Location type?
  Reply With Quote