Animal Behaviours Death Action Classes - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
The AnimalBehaviours module of Vanilla Expanded Framework adds two death action classes:
- DeathActionWorker_DropOnDeath: used by CompDropOnDeath, explained there
- DeathActionWorker_ConfigurableExplosion, like the base game class, only allows you to configure explosion parameters
How do I use this code?
Under the race tag of the ThingDef of an animal, you add:
<deathAction>
<workerClass>ClassGoesHere</workerClass>
</deathAction>