Skip to content

DeathActionWorker_DivideAndCreateFilth

juanosarg edited this page May 29, 2026 · 1 revision

<- Back

DeathActionWorker_DivideAndCreateFilth is like Anomaly's class that causes a Trispike to divide into 3 Fingerspikes when defeated, only configurable:

        public List<PawnKindDef> dividePawnKindOptions = new List<PawnKindDef>();
        public ThingDef filthCreated;
        public IntRange filthCountRange;
        public SoundDef sound;

How do I use this code?

Under the race tag of the ThingDef of an animal, you add:

<deathAction Class="VEF.AnimalBehaviours.DeathActionProperties_DivideAndCreateFilth">
	<dividePawnKindOptions>
		<li>VGE_Exoworm</li>
		<li>VGE_Exoworm</li>
		<li>VGE_Exoworm</li>
	</dividePawnKindOptions>
	<filthCreated>Filth_BloodInsect</filthCreated>
	<filthCountRange>5~10</filthCountRange>
	<sound>Hive_Spawn</sound>
</deathAction>

Clone this wiki locally