Darihon

Untitled

Jun 26th, 2014
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.40 KB | None | 0 0
  1. DBBStatic = [
  2. [5064.08,3727.29,0],
  3. [4819.39,4722.03,0],
  4. [4288.51,3688.88,0],
  5. [3313.36,3392.4,0],
  6. [3872.91,2935.39,0],
  7. [3355.03,4164.66,0],
  8. [3899.8,5080.12,0],
  9. [3115.54,4839.46,0],
  10. [2028.78,5189.27,0],
  11. [2134.16,4159.47,0],
  12. [2683.34,3205.14,0],
  13. [3907.25,6500.18,0],
  14. [3581.97,7398.52,0],
  15. [2218.54,8096.69,0],
  16. [2883.68,8867.95,0],
  17. [3497.14,8844.18,0],
  18. [4249.84,8530.76,0],
  19. [4151.01,7919.15,0],
  20. [4183.22,9666.54,0],
  21. [3479.39,10768.8,0],
  22. [4770.73,11932,0],
  23. [5598.64,11152.8,0],
  24. [6607.1,10069.4,0],
  25. [5573.93,9350.05,0],
  26. [7166.96,9547.29,0],
  27. [6129.23,8784.35,0],
  28. [7188.7,8494.41,0],
  29. [7395.01,10651.6,0],
  30. [8022.4,12063.4,0],
  31. [8701.17,11311.8,0],
  32. [9636.38,12606.6,0],
  33. [9673.15,11622.1,0],
  34. [8448.21,10200.8,0],
  35. [5154.67,9262.37,0],
  36. [6225.02,8798.04,0],
  37. [5134.48,7897.92,0],
  38. [5822.12,7089.07,0],
  39. [7951.94,8205.82,0],
  40. [7682.79,7238.99,0],
  41. [6322.9,6690.02,0],
  42. [6028.26,5232.27,0],
  43. [5005.91,5264.97,0],
  44. [7072.33,5358.28,0],
  45. [8024.24,5131.75,0],
  46. [6710.3,3645.9,0],
  47. [5511.76,2642.89,0],
  48. [5379.05,3978.64,0],
  49. [9221.6,4071.89,0],
  50. [11667.1,5610.36,0],
  51. [10162.5,5900.15,0],
  52. [8433.23,6398.15,0],
  53. [12673.6,5809.96,0],
  54. [11147.4,4818.11,0],
  55. [12309.5,6854.2,0],
  56. [11133.7,7918.26,0],
  57. [11559.1,6558.09,0],
  58. [10068.9,7178.21,0],
  59. [10736.6,8601.22,0],
  60. [10359.6,8586.44,0],
  61. [9599.64,8542.95,0],
  62. [9088.71,9217.57,0],
  63. [11617.1,9588.16,0],
  64. [11995.4,10151.5,0],
  65. [10334.6,10855.1,0],
  66. [10761.6,9797.54,0],
  67. [13622.3,11182.2,0],
  68. [12890.3,11223.4,0],
  69. [12635.7,10819.6,0]
  70. ];
  71.  
  72. _coords = DBBStatic call BIS_fnc_selectRandom;
  73. _HQ = createCenter east;
  74. _unitGroup = createGroup east;
  75. EAST setfriend [WEST,0];
  76.  
  77. //Create Box//
  78. _box1 = createVehicle ["USVehicleBox",[(_coords select 0),(_coords select 1),0],[], 0, "CAN_COLLIDE"];
  79.  
  80. //Creates Marker
  81. _marker = createmarker ["Markertjuh", _coords];
  82. "Markertjuh" setMarkerColor "ColorRed";
  83. "Markertjuh" setMarkerShape "ELLIPSE";
  84. "Markertjuh" setMarkerBrush "Grid";
  85. "Markertjuh" setMarkerSize [100,100];
  86.  
  87. //Spawns AI
  88. _squad1 = _unitGroup createUnit ["Bandit1_DZ",[(_coords select 0) +2,(_coords select 1) -2,0], [], 10, "PRIVATE"];
  89.  
  90. //Makes them hostile
  91. [_squad1] joinSilent _unitGroup;
  92.  
  93. //Behaviour
  94. _squad1 enableAI "TARGET";
  95. _squad1 enableAI "AUTOTARGET";
  96. _squad1 enableAI "MOVE";
  97. _squad1 enableAI "ANIM";
  98. _squad1 enableAI "FSM";
  99. _squad1 setCombatMode "RED";
  100. _squad1 setBehaviour "COMBAT";
  101.  
  102. //Gives AI weapons
  103. _squad1 addWeapon "AK74";
  104. // bla bla bla
Advertisement
Add Comment
Please, Sign In to add comment