Enrage Other Pawns - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

CompEnrageOtherPawns makes the animal enrage other animals in the map, causing them to go manhunter, when it goes manhunter

        //A comp class that will make other animals on the map go manhunter if it goes manhunter

        public List<PawnKindDef> pawnkinddefsToAffect;
        public int checkingInterval = 200;

How do I use this code?

It is a comp class, so you just add it in XML in the tag. For example, this allows the Ancient Giant Spider in Vanilla Animals Expanded - Caves to send all spiders in the map manhunter if it is attacked

<comps>
	<li Class="VEF.AnimalBehaviours.CompProperties_EnrageOtherPawns">
		<pawnkinddefsToAffect>
			<li>VAECaves_GiantSpider</li>
			<li>VAECaves_GiantSpiderHatchling</li>
		</pawnkinddefsToAffect>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️