Make other pawns flee - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
CompMakeOtherPawnsFlee is a comp class that makes an animal cause other nearby pawns to flee when it is attacked
public List<PawnKindDef> pawnkinddefsToAffect;
public int checkingInterval = 200;
It is a comp class, so you just add it in XML in the <comps>
tag. For example, this makes the swarmlings in VFE - Insectoids 2 cause other nearby swarmlings to flee when they are attacked. Other PawnKindDefs are unaffected.
<comps>
<li Class="VEF.AnimalBehaviours.CompProperties_MakeOtherPawnsFlee">
<pawnkinddefsToAffect>
<li>VFEI2_Swarmling</li>
</pawnkinddefsToAffect>
<checkingInterval>2000</checkingInterval>
</li>
</comps>