Skip to content

Active Terrain Power Trader

juanosarg edited this page Jun 24, 2025 · 1 revision

<- Back

TerrainCompProperties_PowerTrader allows the terrain to produce or consume power

        public float basePowerConsumption;
        public bool ignoreNeedsPower;

How do I use this code?

It is a comp class, so you just add it in XML in the <terrainComps> tag of the ActiveTerrain.

<terrainComps>
	<li Class="VEF.Maps.TerrainCompProperties_PowerTrader">
		<ignoreNeedsPower>true</ignoreNeedsPower>
		<basePowerConsumption>-100</basePowerConsumption>
	</li>		
</terrainComps>

Clone this wiki locally