Skip to content

CompProperties_WeaponHediffs

juanosarg edited this page Jun 3, 2026 · 1 revision

<- Back

CompProperties_WeaponHediffs is a comp that allows you to add hediffs to the pawn that wields a weapon

         public List<HediffDef> hediffs;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example:

<comps>
	<li Class="VEF.Weapons.CompProperties_WeaponHediffs">	
		<hediffs>
			<li>VFEU_SmartTargeting</li>
		</hediffs>
	</li>
</comps>

Clone this wiki locally