nolanri Posted June 3, 2016 Share Posted June 3, 2016 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 More sharing options...
nolanri Posted June 3, 2016 Author Share Posted June 3, 2016 OH transmitRemoveItemFromSquare(IsoObject obj) is for Objects when i assumed it was for "inventoryItems" this should work Link to comment Share on other sites More sharing options...
nolanri Posted June 3, 2016 Author Share Posted June 3, 2016 no still doesnt work on multiplayer. the zombie is still there, even if I move off the loaded cell and come back. so how does one remove a zombie off of the server on multiplayer? Link to comment Share on other sites More sharing options...
Madruga Posted June 3, 2016 Share Posted June 3, 2016 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 More sharing options...
nolanri Posted June 3, 2016 Author Share Posted June 3, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now