-
Notifications
You must be signed in to change notification settings - Fork 62
Make other pawns flee
juanosarg edited this page Jun 24, 2025
·
3 revisions
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>- Abilities
- Aesthetic scaling
- Animal Behaviours
- Apparels
- Buildings
- Cooking
- Factions
- Genes
- Global
- Graphics
- Hediffs
- Maps
- Memes
- OptionalFeatures
- Pawns
- Planet
- Plants
- Storyteller
- Things
- Weapons
- Weathers
- PipeSystem basics
- Resource
- Resource storage
- Resource processor
- Resource to thing
- Resource to power
- Thing to resource
- Resource trader
- Refill building with pipes
- Pipe valve
- Advanced Resource Processor
- Update to KCSG 2.0
- Exporting buildings
- Customizing symbols
- Debug helpers options
- Custom faction settlement
- Custom structure and scenarios
- Custom structure in quests
- Custom structure in WorldObjects
- Biome based structures
- Spawning world object(s) at world generation
- Prevent settlement spawning for nomadic factions