Grabbing the Building a Quest is In?

Discuss modding questions and implementation details.
Post Reply
Posts: 1134
Joined: Mon Aug 12, 2019 4:32 pm

Grabbing the Building a Quest is In?

Post 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?
My Daggerfall Mod Github: l3lessed DFU Mod Github

My Beth Mods: l3lessed Nexus Page

Daggerfall Unity mods: Combat Overhaul Mod

Enjoy the free work I'm doing? Consider lending your support.

Post Reply