Skip to content

PipeValve

KylianB edited this page Aug 9, 2022 · 3 revisions

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").

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Genes

Apparel

Cuisine

Furniture

Plants

Deprecated

Clone this wiki locally