Iamlooking tofor a solutionfor ourcleanup script. Thisclean updelete thetombsfrom theburycorpsesscript---> seaweeduk Bury Corpses Since mypostwas deleted from theForumopenayzfor reasons that Ican not understand.....
We used this clean up:
diag_log ("Custom CleanUp Script Loaded");
if (isServer) then {
[] spawn {
diag_log format ["Cleanup2 INIT at %1", time];
while {true} do {
sleep 200;
_objects1 = (allMissionObjects "ReammoBox");
_objects2 = (allMissionObjects "Sound_Flies");
_objects3 = (allMissionObjects "Land_Fire_DZ");
_objectsX = _objects1 + _objects2 + _objects3 + alldead;
_tmpObjects = [];
{
_nearby = {isPlayer _x} count (_x nearEntities [["CAManBase"], 500]);
_keep = _x getVariable ["permaLoot",false];
if ((_nearby == 0) && (!_keep) && !(_x in alldead)) then
{
_tmpObjects = _tmpObjects + [_x];
};
_nearby = {isPlayer _x} count (_x nearEntities [["CAManBase"], 250]);
if ((_nearby == 0) && (_x in alldead) && (_x isKindOf "zZombie_Base")) then
{
diag_log format ["CLEANUP2: Deleting %1", _x];
deleteVehicle _x;
};
} foreach _objectsX;
sleep 100;
{
_nearby = {isPlayer _x} count (_x nearEntities [["CAManBase"], 500]);
_keep = _x getVariable ["permaLoot",false];
if ((_nearby == 0) && (!_keep) && !(_x in alldead)) then
{
diag_log format ["CLEANUP2: Deleting %1", _x];
deleteVehicle _x;
};
} forEach _tmpObjects;
};
};
};
Question
DeliciousAce
Hello Epoch Community,
I am looking to for a solution for our cleanup script.
This clean up delete the tombs from the bury corpses script ---> seaweeduk Bury Corpses
Since my post was deleted from the Forum openayz for reasons that I can not understand.....
We used this clean up:
And adapted it Like this:
The Clean up is Working and deletes the Graves and Crosses:
But the RPT-Log spit out an Error Message:
We are not very skilled in scripting but we try to learn and grab up everything Important.
Maybe some one you outhere can help us with this one :)
Thanks in Advance!!
Ace
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now