Page 1 of 1

Grabbing the Building a Quest is In?

Posted: Sat Aug 14, 2021 5:39 am
by l3lessed
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.

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);
                        }
                    }
This returns a bunch of empty vectors and 0 building keys.

Any ideas on this?