Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_itemsToClear","_obj","_rad","_delay"];
- _obj = getMarkerPos "respawn_west"; // get spawn - might as well
- _rad = 100; // radius outwards from center point to clear items.
- _delay = 60; // amount of time in-between clean-ups
- while {true} do
- {
- sleep _delay;
- debugMessage = "Clearing items from spawn...";
- publicVariable "debugMessage";
- _itemsToClear = nearestObjects [_obj,["weaponholder"],_rad];
- {
- deleteVehicle _x;
- } forEach _itemsToClear;
- debugMessage = "Items cleared.";
- publicVariable "debugMessage";
- };
Advertisement
Add Comment
Please, Sign In to add comment