DayZ
Zens Enormous Package
Terry Lava 2024 年 8 月 25 日 下午 3:58
zenpetrollighter
what part of the mod is spawning 1000 zenPetrolLighters, even though i don't have a types file for it?
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3317468226
< >
正在显示第 1 - 4 条,共 4 条留言
Terry Lava 2024 年 10 月 6 日 上午 8:12 
left the server running for a few weeks. it's now up to 9000 zenPetrolLighters
MYLN 2024 年 10 月 26 日 上午 5:22 
Did you get a fix bud?
Terry Lava 2024 年 10 月 28 日 下午 10:48 
Nope. I just turned off zenzippo in the cfg, and turned the lifetime for zenpetrollighter to 1, and the restock timer to 14400
Ingal 7 月 18 日 上午 2:50 
@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.
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50