Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If (isServer) then {
- private _middle = worldSize/2;
- private _int = 0;
- {
- If ((toUpper (str _x) find “GARBAGEPALLET”) >= 0) then {
- _x hideObjectGlobal true;
- _int = _i + 1;
- };
- } forEach (nearestTerrainObjects [ [_middle, _middle], [], worldSize, false]);
- diag_log format ["### CLUTTER REMOVER %1 Terrain Objects Hidden", _int];
- };
- /*
- If you wanted to filter for more classes.
- Eg. Washing machines and stuff you’d do it like this
- if (
- ((toUpper (str _x) find “GARBAGEPALLET”) >= 0) ||
- ((toUpper (str _x) find “GARBAGEWASHING”) >= 0) ||
- ((toUpper (str _x) find “GARBAGEBAGS”) >= 0)
- ) then {
- _x hideObjectGlobal true;
- _int = _i + 1;
- };
- // the above is an example, and silly. Because you could just shorten to GARBAGE and it will delete all of the items called garbage. But it may delete things called garbage you don’t wanna remove.
- nearestTerrainObjects returns the .p3d model name
- https://configs.arma3.ru/158.135742-cup/configFile/CfgVehicles.html
- If you check each of the land_ classes in that link, you can get the model names. eg
- model = "\A3\Structures_F\Ind\Cargo\Cargo20_color_V1_ruins_F.p3d";
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement