DayZ
Zens Enormous Package
Terry Lava 25 Aug, 2024 @ 3:58pm
zenpetrollighter
what part of the mod is spawning 1000 zenPetrolLighters, even though i don't have a types file for it?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3317468226
< >
Showing 1-4 of 4 comments
Terry Lava 6 Oct, 2024 @ 8:12am 
left the server running for a few weeks. it's now up to 9000 zenPetrolLighters
MYLN 26 Oct, 2024 @ 5:22am 
Did you get a fix bud?
Terry Lava 28 Oct, 2024 @ 10:48pm 
Nope. I just turned off zenzippo in the cfg, and turned the lifetime for zenpetrollighter to 1, and the restock timer to 14400
Ingal 18 Jul @ 2:50am 
@terra Lava!

You can use this script in init.c to remove an item that goes haywire.

// Delete all occurrences of defined objects on the server - Start

// Set isActiveDeleteObjects to 0 if you want to disable deleting objects every restart.
int isActiveDeleteObjects = 1;

TStringArray deleteTheseObjects = new TStringArray;

// Set which objects to delete. Add more objects by comma separate them, for example: deleteTheseObjects = {"ZenPetrolLighter", "OtherObject1", "OtherObject2"} etc.
deleteTheseObjects = {"ZenPetrolLighter"};

if (isActiveDeleteObjects == 1)
{
array<Object> objects = new array<Object>;
GetGame().GetObjectsAtPosition("7500 0 7500", 10000, objects, null);

foreach (Object obj: objects)
{
for (int i = 0; i < deleteTheseObjects.Count(); ++i)
{
if (obj.GetType() == deleteTheseObjects)
GetGame().ObjectDelete(obj);
}
}
}
// Delete all occurrences of defined objects on the server - End

And check the typefile afterwards so everything is good.
< >
Showing 1-4 of 4 comments
Per page: 1530 50