Dynamically change building texture given some condition

Started by theguruofreason, May 27, 2018, 05:08:28 PM

Previous topic - Next topic

theguruofreason

I want a building to either:

  • Completely change its base texture when certain conditions are met (ie: this.(int) > (int))
  • Display a texture over (on top of) its texture when certain conditions are met.

I've tried a few different approaches to no avail. The building always keeps its default graphic. Does anyone know how to do this?

crustymonkey

You might want to take a look at the code for the "Rimatomics" mod. I believe they do something like this with some of the workstations. Like their panels and led's light up when powered.

jamaicancastle

If you're fine with an overlay, check out the ThingComp "CompFireOverlay" which... does what it says it does. (It's used by torch lamps and campfires.)