Make something similar to a steam geyser

Started by CovertGhost7377, August 21, 2014, 10:36:04 AM

Previous topic - Next topic

CovertGhost7377

Is it possible to make something like a steam geyser? with the way it spawns on map generation and only certain buildings can be built on it?

RawCode

yes it possible

placement rules handled solely by building (like default geotermal generator) and can be coded to be placed over anything.

for placement on stuff over map, you can hook to GameStartEvent or implement gensteps.

WolfgangPolska

I wonder if placing next to something (for ex. Rock) is possible.
I have no idea how, but it works!!!

RawCode

dont wonder, just test it self


    <placementRestricters>
      <li>PlacementRestricter_OnSteamGeyser</li>
    </placementRestricters>

WolfgangPolska

I have no idea how, but it works!!!

Haplo

And if you want to place something next to something else, you can take a look at the source of Miscellaneous.
I have such a placement restricter in there: PlacementRestricter_NextToNanoPrinter