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

Modding zombie to autoexplode when near player

Explode based only on distance from player? Not sure, player would need an AOE buff of the desired range that passes a buff to the incoming entity and that new buff sets off the cop exploding routine by damaging him over time.

 
Explode based only on distance from player? Not sure, player would need an AOE buff of the desired range that passes a buff to the incoming entity and that new buff sets off the cop exploding routine by damaging him over time.
I see. How would you add a buff to the incoming entity? I know how to send buffs from the entity, but not sure how to send a buff from the player to the entity.

 
I’d start by looking at the puking police zombie and see how it explodes in the xml file.

 
I see. How would you add a buff to the incoming entity? I know how to send buffs from the entity, but not sure how to send a buff from the player to the entity.
I love your work, I want to do it too.

the buff is not a bad idea but you must exclude the zombies otherwise they will explode. :D

The best is to create an <item name = "meleeHand"> for your zombie which can cause an explosion and kill the player.

Personally I seek to obtain this result

 
Last edited by a moderator:
Back
Top