So as recommended to me, I starting playing with the CityNavigator Object and all its connected stuff. This worked in getting the proper position of a city location for placing markers.
However, I have one issue with it. Anytime I try to fast travel some where, the navigator object doesn't activate at the write time and returns a null error when grabbing the position.
This is the code here:
Code: Select all
DaggerfallLocation Dflocation = GameManager.Instance.StreamingWorld.CurrentPlayerLocationObject;
GameManager.Instance.StreamingWorld.GetCurrentCityNavigation().WorldToScenePosition(new DFPosition(Dflocation.Summary.MapPixelX, Dflocation.Summary.MapPixelX)
Code: Select all
if(GameManager.Instance.StreamingWorld.GetCurrentCityNavigation() == null) return;
Code: Select all
if(Dflocation.GetComponentInChildren<BuildingDirectory>() == null) return;
Code: Select all
if(Dflocation.GetComponentInChildren<BuildingDirectory>() == null) return;
Code: Select all
if(GameManager.Instance.StreamingWorld.CurrentPlayerLocationObject == null) return;
Code: Select all
if(GameManager.Instance.StreamingWorld.CurrentPlayerLocationObject == null) return;
Code: Select all
if(GameManager.Instance.SaveLoadManager.LoadInProgress || GameManager.Instance.StreamingWorld.IsInit || GameManager.Instance.StreamingWorld.IsRepositioningPlayer) return;