Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_p", "_w", "_coords", "_boxesNear", "_boxcount", "_box"];
- _p = _this select 0; //player
- _w = _this select 1; // worldspace
- //_humanity = _p getVariable ["humanity",0];
- systemChat (_p getVariable ["lMsg",0]);
- // Make sure there isn't already a box there. You could go in/out of the lobby.
- // This could give a false positive, but so what
- _coords = _w;
- _boxesNear = nearestObjects [_coords, ["AmmoBoxBig"], 5];
- _boxcount = count _boxesNear;
- if ((_boxcount) > 0) then {
- _box = _boxesNear select 0;
- // diag_log("DZLD: Found an AmmoBoxBig. Waiting...");
- titleText ["Warning: Collect your supplies now. The Supply Box will disappear when you walk away!", "PLAIN DOWN", 3];
- waitUntil {(_p distance _box) > 6};
- deleteVehicle _box;
- _box = nil;
- // diag_log("DZLD: Removed the AmmoBoxBig.");
- titleText ["Your Supply Box has disappeared.", "PLAIN DOWN", 3];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement