Hey,
I'm trying to get storage-boxes on the server. So far with no results.
I'm trying to get an exception for the box in the owcleanup.sqf but i cant get the right form.
I've tried it with this line and many more but without any results:
Hope one of you guys can help me
I'm trying to get storage-boxes on the server. So far with no results.
I'm trying to get an exception for the box in the owcleanup.sqf but i cant get the right form.
Code:
if (((diag_tickTime - _lastItemCheck) > 450)) then
{
_lastItemCheck = diag_tickTime;
private ["_delQty","_keep","_nearby","_myGroupX","_delQtyAnimalR","_delQtyAnimal","_xtypeanimal","_missionObjs","_qty","_animaltype"];
//Server Cleanup
_missionObjs = allMissionObjects "ReammoBox";
_qty = count _missionObjs;
{
if ((local _x) or (_qty > 750)) then {
_keep = _x getVariable ["permaLoot",false];
_nearby = {isPlayer _x} count (_x nearEntities [["CAManBase"], 100]);
if ( (!_keep) && (_nearby==0)) then {
deleteVehicle _x;
_x = nil;
};
};
} forEach _missionObjs;
};
I've tried it with this line and many more but without any results:
Code:
if ( (!_keep) && (_nearby==0) && (typeOf vehicle _x) != ""USBasicAmmunitionBox_EP1"" ) then {
Hope one of you guys can help me