Hey all,
In my settings I want to be able to set the power of my modded building, I've partially got this to work in the sense that if I build my building it's got the setting value but if i change the value in settings the building remains at the previous value set rather than the new value but if i build the building again it's got the correct value.
Is it possible to update the current buildings with the new value after saving my settings?
I tried to use the below code to force a refresh on drawing;
However this doesn't seem to have an affect, any help would be greatly appreciated, thank you.
In my settings I want to be able to set the power of my modded building, I've partially got this to work in the sense that if I build my building it's got the setting value but if i change the value in settings the building remains at the previous value set rather than the new value but if i build the building again it's got the correct value.
Is it possible to update the current buildings with the new value after saving my settings?
I tried to use the below code to force a refresh on drawing;
Code Select
if (Current.ProgramState == ProgramState.Playing)
{
Current.Game.CurrentMap.mapDrawer.WholeMapChanged(MapMeshFlag.Buildings);
}
However this doesn't seem to have an affect, any help would be greatly appreciated, thank you.