Hi, I'm trying to make a torch for a mod I'm making, what I've done is used the same code from the standing light, changed what was necessary (like texture location etc.) I can make it so that it works without power, but it will only work if it's connected to wire that has power running through it. Can anyone help me?
Also this is my first time making a mod.
Here's the whole code.
Is what I'm trying to change hardcoded?
Also this is my first time making a mod.
Here's the whole code.
Code Select
<ThingDef ParentName="BuildingBase">
<defName>Torch</defName>
<eType>BuildingComplex</eType>
<label>Torch</label>
<thingClass>Building</thingClass>
<category>Building</category>
<texturePath>Things/Building/Torch</texturePath>
<altitudeLayer>BuildingTall</altitudeLayer>
<passability>PassThroughOnly</passability>
<maxHealth>50</maxHealth>
<flammability>1.0</flammability>
<selectable>true</selectable>
<description>Wooden Torch that lights a small area.</description>
<size>(1,1)</size>
<workToBuild>5</workToBuild>
<costList>
<li>
<thingDef>WoodLog</thingDef>
<count>1</count>
</li>
</costList>
<soundBulletHit>BulletImpactWood</soundBulletHit>
<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
<comps>
<li>
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>0</basePowerConsumption>
<soundPowerOn>PowerOnSmall</soundPowerOn>
<soundPowerOff>PowerOffSmall</soundPowerOff>
</li>
<li>
<compClass>CompGlower</compClass>
<glowRadius>12</glowRadius>
<glowColor>(217,217,208,0)</glowColor>
</li>
</comps>
<designationCategory>Furniture</designationCategory>
<sunShadowInfo>
<basewidth>0.3</basewidth>
<baseHeight>0.3</baseHeight>
<tallness>0.6</tallness>
<offset>(0,0,-0.1)</offset>
</sunShadowInfo>
<rotatable>false</rotatable>
</ThingDef>Is what I'm trying to change hardcoded?