Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*private ["_delcode", "_currentworld", "_oldworld", "_newworld", "_notalive"];
- _delcode = {
- private ["_crew"];
- sleep 500;
- {
- if (not isNull _x) then {
- if (_x isKindOf "Ship" or _x isKindOf "Air" or _x isKindOf "LandVehicle") then {
- _crew = nearestObjects [_x, ["Man"], 20];
- _crew = _crew + crew _x;
- deleteVehicle _x;
- {
- if (not alive _x) then {deleteVehicle _x};
- } forEach _crew;
- } else {
- deleteVehicle _x;
- };
- };
- } forEach _this;
- };
- _currentworld = [];
- while {true} do {
- sleep 3;
- _oldworld = _currentworld;
- _currentworld = + list wholeworld;
- _newworld = _oldworld - _currentworld;
- _notalive = [];
- {
- if (not alive _x) then {_notalive = _notalive + [_x]};
- } forEach _newworld;
- if (count _notalive > 0) then {_notalive spawn _delcode};
- };*/
- while {true} do
- {
- sleep 10;
- {
- _sandGlass = _x getVariable "RYD_DeathTime";
- if (isNil "_sandGlass") then
- {
- _x setVariable ["RYD_DeathTime",time]
- }
- else
- {
- if ((time - _sandGlass) > 60) then
- {
- deleteVehicle _x
- }
- }
- }
- foreach AllDead;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement