PipeValve - AndroidQuazar/VanillaExpandedFramework GitHub Wiki

This comp can be added to any building. It is used to create a valve (similar to switches).

Basic

Below, an example of the comp (from Vanilla Chemfuel Expanded), the building need to tick.

<li Class="PipeSystem.CompProperties_PipeValve">
  <pipeNet>VCHE_ChemfuelNet</pipeNet>
  <!-- Should pipe link with the valve even when closed ? -->
  <!-- Default: false -->
  <alwaysLinkToPipes>true</alwaysLinkToPipes>
</li>
<li Class="CompProperties_Flickable">
  <commandTexture>Things/Item/Resource/Chemfuel</commandTexture>
  <commandLabelKey>VCHE_ChemValve</commandLabelKey>
  <commandDescKey>VCHE_ChemValveDesc</commandDescKey>
</li>

You will also need to add to your def:

  • <tickerType>Normal</tickerType>

If you want the switch/valve to have an on and off graphic, use the PipeSystem.Building_PipeValve thingClass. The off state texture must have the same name, with "_Off" added at the end ("Switch" and "Switch_Off").

⚠️ **GitHub.com Fallback** ⚠️