Jump to content

why does removeFromWorld(); not work on mulitplayer with zombie objects?


nolanri

Recommended Posts

i use the code

 

for i=0, closeobjects:size()-1 do   
closeobjects:get(i):removeFromWorld();
getPlayer():getCurrentSquare():addCorpse( IsoDeadBody.new(closeobjects:get(i), false), false);

end

 

to basically change near by zombies into corpses by first removing the zombie and then adding his corpse after.

It works fine on single player. but on multiplayer the real zombie stays even though the corpse appears and no error was given


any help please?

Link to comment
Share on other sites

Are you talking about dead corpses?

 

If so, there's a "HoursForCorpseRemoval=" parameter into the server's config file. You just set the amount of PZhours that the area must remain unseen for the corpse to be removed from the server...

Link to comment
Share on other sites

no this is for the Drivable cars mod im working on. want to kill and or knock down zombies the car collides with.

So far on single player the car "kills" zombies it collides with. by removing the zombies and then adding a corpse. BUT for some reason this does not work on multiplayer the zombie remains even though the corpse is made. and there was no lua error.

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