Jump to content

Question on xpath to disable zombies climbing ladders


TheFlayer

Recommended Posts

I want to disable zombies' ability to climb ladders. I can't figure out why this won't work in game. I don't get any error messages upon loading the game. What am I doing wrong? This is what my config file looks like:

 

<config>

<set xpath="/entityclasses/entityclass[@name='zombieTemplateMale']/property[@name='CanClimbLadders']/@value">false</set>

</config>

 

and it is entityclasses.xml located in 7 Days To Die/Mods/mymodname/Config

 

Any advice would be appreciated. Thank you.

 

Edit: I just went in and changed the value to false in the main xml and zombies still climb ladders, so I'm inclined to believe that it's hard-coded or otherwise bugged in some way, and that for the time being their ability to climb ladders is unchangeable.

Edited by TheFlayer (see edit history)
Link to comment
Share on other sites

7 hours ago, BFT2020 said:

Try setattribute instead of set

I used:

<setattribute xpath="/entity_classes/entity_class[@name='zombieTemplateMale']/property[@name='CanClimbLadders']/@value">false</setattribute>

 

results in the error message:

SetAttributeByXpath (/config/setattribute, line 2 at pos 2): Patch element does not have a 'name' attribute

 

So, it's telling me the patch element needs a 'name' attribute? I'm not entirely sure what that means.

 

Edit: I just went in and changed the value to false in the main xml and zombies still climb ladders, so I'm inclined to believe that it's hard-coded or otherwise bugged in some way, and that for the time being their ability to climb ladders is unchangeable.

Edited by TheFlayer (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...