Skip to content

DeathActionWorker_VanishInsect

juanosarg edited this page May 29, 2026 · 1 revision

<- Back

DeathActionWorker_VanishInsect is the same as the Anomaly code that make Fingerspikes vanish when destroyed, only used for insects instead of fleshbeasts:

        public FleckDef fleck;
        public ThingDef filth;
        public IntRange filthCountRange = IntRange.One;

How do I use this code?

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

<deathAction Class="VEF.AnimalBehaviours.DeathActionProperties_VanishInsect">
	<filth>Filth_BloodInsect</filth>
	<filthCountRange>1~3</filthCountRange>
</deathAction>

Clone this wiki locally