Jump to content
Sign in to follow this  
ToastedFishSandwich

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...