Jump to content

How to Spawn a Zombie


Recommended Posts

Hi all. I know this probably quite a simple problem and I have tried to find a solution on https://projectzomboid.com/modding/ but haven't had any luck just yet.

 

Quite a while ago I could do it like this:

z = getVirtualZombieManager():createRealZombieNow(X, Y, Z);

But sometime in the past few years that stopped working. What's the new method (and what's the best way to find out for myself in the future)?

 

Edit: Okay I may have found it already myself (I could have found it sooner if Google hadn't decided to hide the majority of my search results on the topic for some reason). Testing now.

 

For anybody trying to solve the same problem in future new code is

z = createZombie(dupeX, dupeY, dupeZ, nil, 0, IsoDirections.E);

 

Edited by ToastedFishSandwich
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...