Jump to content

How to get event whenever zombie moves?


MXXIV

Recommended Posts

I am making a mod that shows zombie and player locations on PZ Server map project. This requires some alterations of both game and the map. Currently it looks like this and uses JSON to transfer all zombie locations at once:

P54uFoB.jpg?1

 

I would rather stream the zombies and their location continuously through event-driven model, ideally in a separate thread.

 

Currently I'm just gonna replace the original zombie registry ArrayList with my overridden ArrayList implementation that registers adding and removal of the zombies. But that doesn't deal with zombie locations.

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...