• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Make Zombies Attack Animals?

ZenKevin

Refugee
entityclasses.xml
XML:
<configs>
    <set xpath="/entity_classes/entity_class[@name='zombieTemplateMale']/property[@name='AITask']/@value">
    BreakBlock|
    DestroyArea|
    Territorial|
    ApproachDistraction|
    ApproachAndAttackTarget class=EntityEnemyAnimal,0,EntityAnimal,0,EntityPlayer,0,EntityBandit,0|
    ApproachSpot|
    Look|
    Wander|
    </set>
</configs>

factions.xml
XML:
<configs>
  <append xpath="/factions/faction[@name='undead']">
    <relation faction="animal" name="Hate"/>
  </append>
</configs>



The above is my code to try to get zombies to target animals, if they're closer than they player. However, their behavior does not change.

Any ideas?
 
Back
Top