Grabbing the Building a Quest is In?
Posted: Sat Aug 14, 2021 5:39 am
I am working on my minimap mod. I want it to be able to show the building a quest is located in. Is there a clear, easy way to get the building quests are in?
I tried a few things.
This returns a bunch of empty vectors and 0 building keys.
Any ideas on this?
I tried a few things.
Code: Select all
SiteDetails[] questSiteArray = GameManager.Instance.QuestMachine.GetAllActiveQuestSites();
if (questSiteArray != null)
{
foreach (SiteDetails questSite in questSiteArray)
{
Debug.Log(questSite.selectedMarker.flatPosition + " | " + questSite.selectedMarker.buildingKey + " | " + questSite.selectedMarker.placeSymbol);
}
}
Any ideas on this?