how to get name-string "Castle Daggerfall" when inside castle daggerfall
Posted: Tue May 29, 2018 8:40 am
I am having a hard time trying to get the correct string for Castle Daggerfall when pc is inside it.
starting conditions are: castle daggerfall not discovered yet, saved the game inside, reloading this save
I tried to use the same mechanism as in PlayerGPS class in function GetBuildingDiscoveryData, something like:
but I lack the buildingKey.
How can I get it, I searched in GameManager.Instance.PlayerGPS as well as in GameManager.Instance.PlayerEnterExit but since ExteriorDoors is empty in there when inside castle daggerfall the door info is not available and thus no buildingKey
need help
starting conditions are: castle daggerfall not discovered yet, saved the game inside, reloading this save
I tried to use the same mechanism as in PlayerGPS class in function GetBuildingDiscoveryData, something like:
Code: Select all
BuildingDirectory buildingDirectory = GameManager.Instance.StreamingWorld.GetCurrentBuildingDirectory();
BuildingSummary buildingSummary;
buildingDirectory.GetBuildingSummary(buildingKey, out buildingSummary);
buildingName = BuildingNames.GetName(
buildingSummary.NameSeed,
buildingSummary.BuildingType,
buildingSummary.FactionId,
buildingDirectory.LocationData.Name,
buildingDirectory.LocationData.RegionName);
How can I get it, I searched in GameManager.Instance.PlayerGPS as well as in GameManager.Instance.PlayerEnterExit but since ExteriorDoors is empty in there when inside castle daggerfall the door info is not available and thus no buildingKey
need help