SHARE
TWEET

Untitled

a guest Sep 13th, 2017 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _nameOfCompositionFirstGroup = "by X39";    _nameOfCompositionSecondGroup = "FOBs";
  2.     _nameOfComposition = "ION FOB ALPHA";
  3.     _range = 500;
  4.    
  5.     _filterAmmoboxes = true;
  6.    
  7.    
  8.     _classNameOfCompositionFirstGroup = [];
  9.     _classNameOfCompositionSecondGroup = [];
  10.     _classNameOfComposition = [];
  11.     {
  12.         if(_x == 32) then
  13.         {
  14.             _classNameOfCompositionFirstGroup set[count _classNameOfCompositionFirstGroup, 95];
  15.         }
  16.         else
  17.         {
  18.             _classNameOfCompositionFirstGroup set[count _classNameOfCompositionFirstGroup, _x];
  19.         };
  20.         false
  21.     }count toArray _nameOfCompositionFirstGroup;
  22.     _classNameOfCompositionFirstGroup = toString _classNameOfCompositionFirstGroup;
  23.     {
  24.         if(_x == 32) then
  25.         {
  26.             _classNameOfCompositionSecondGroup set[count _classNameOfCompositionSecondGroup, 95];
  27.         }
  28.         else
  29.         {
  30.             _classNameOfCompositionSecondGroup set[count _classNameOfCompositionSecondGroup, _x];
  31.         };
  32.         false
  33.     }count toArray _nameOfCompositionSecondGroup;
  34.     _classNameOfCompositionSecondGroup = toString _classNameOfCompositionSecondGroup;
  35.     {
  36.         if(_x == 32) then
  37.         {
  38.             _classNameOfComposition set[count _classNameOfComposition, 95];
  39.         }
  40.         else
  41.         {
  42.             _classNameOfComposition set[count _classNameOfComposition, _x];
  43.         };
  44.         false
  45.     }count toArray _nameOfComposition;
  46.     _classNameOfComposition = toString _classNameOfComposition;
  47.     _strArr = toArray format["class CfgGroups%7{%7%8class Empty%7%8{%7%8%8side = 8;%7%8%8name = ""Compositions"";%7%8%8class %4%7%8%8{%7%8%8%8name = ""%1"";%7%8%8%8class %5%7%8%8%8{%7%8%8%8%8name = ""%2"";%7%8%8%8%8class %6%7%8%8%8%8{%7%8%8%8%8%8name = ""%3"";%7", _nameOfCompositionFirstGroup, _nameOfCompositionSecondGroup, _nameOfComposition, _classNameOfCompositionFirstGroup, _classNameOfCompositionSecondGroup, _classNameOfComposition, toString [13,10], toString [9]];
  48.     {
  49.         _flag = false;
  50.         _typeX = typeOf _x;
  51.         if(_typeX == "Rabbit_F") then {_flag = true;};
  52.         if(_typeX == "Snake_random_F") then {_flag = true;};
  53.         if(_typeX == "GroundWeaponHolder") then {_flag = true;};
  54.         if(_x == player) then {_flag = true;};
  55.         if(_filterAmmoboxes && {_x isKindOf "ReammoBox_F"}) then {_flag = true};
  56.         if(!_flag) then
  57.         {
  58.             _nulledPosition = [(position _x select 0) - (position player select 0), (position _x select 1) - (position player select 1), (position _x select 2) - (position player select 2)];
  59.             _strArr = _strArr + toArray(format["%8%8%8%8%8class Object%1 {side=8;vehicle=""%2"";rank="""";position[]={%3,%4,%5};dir=%6;};%7", _forEachIndex, _typeX, _nulledPosition select 0, _nulledPosition select 1, _nulledPosition select 2, direction _x, toString [13,10], toString [9]]);
  60.         };
  61.     }forEach  nearestObjects [position player, ["all"], _range];
  62.     _strArr = _strArr + toArray format["%2%2%2%2};%1%2%2%2};%1%2%2};%1%2};%1};", toString [13,10], toString [9]];
  63.     copyToClipBoard toString _strArr;
RAW Paste Data
Top