Advertisement
iaretechnician

ImprovedHempFarm.sqf

Jan 16th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _vehicle_9 = objNull;
  2. if (true) then
  3. {
  4.   _this = createVehicle ["Land_A_Castle_Bergfrit", [1833.4358, 14572.056, -10.159177], [], 0, "CAN_COLLIDE"];
  5.   _vehicle_9 = _this;
  6.   _this setDir -131.1223;
  7.   _this setPos [1833.4358, 14572.056, -10.159177];
  8. };
  9.  
  10. _vehicle_10 = objNull;
  11. if (true) then
  12. {
  13.   _this = createVehicle ["Land_A_Castle_Wall1_20_Turn", [1848.0436, 14578.617, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  14.   _vehicle_10 = _this;
  15.   _this setPos [1848.0436, 14578.617, -9.1552734e-005];
  16. };
  17.  
  18. _vehicle_11 = objNull;
  19. if (true) then
  20. {
  21.   _this = createVehicle ["Land_A_Castle_Wall1_20_Turn", [1867.2296, 14574.627, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  22.   _vehicle_11 = _this;
  23.   _this setDir 34.096603;
  24.   _this setPos [1867.2296, 14574.627, -3.0517578e-005];
  25. };
  26.  
  27. _vehicle_12 = objNull;
  28. if (true) then
  29. {
  30.   _this = createVehicle ["Land_A_Castle_Wall1_20_Turn", [1879.7058, 14560.749, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  31.   _vehicle_12 = _this;
  32.   _this setDir 76.668983;
  33.   _this setPos [1879.7058, 14560.749, -3.0517578e-005];
  34. };
  35.  
  36. _vehicle_13 = objNull;
  37. if (true) then
  38. {
  39.   _this = createVehicle ["Land_A_Castle_Gate", [1882.3777, 14539.777, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  40.   _vehicle_13 = _this;
  41.   _this setDir 113.25529;
  42.   _this setPos [1882.3777, 14539.777, -3.0517578e-005];
  43. };
  44.  
  45. _vehicle_15 = objNull;
  46. if (true) then
  47. {
  48.   _this = createVehicle ["Land_A_Castle_Wall1_20_Turn", [1868.979, 14529.168, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  49.   _vehicle_15 = _this;
  50.   _this setDir 140.52191;
  51.   _this setPos [1868.979, 14529.168, 6.1035156e-005];
  52. };
  53.  
  54. _vehicle_16 = objNull;
  55. if (true) then
  56. {
  57.   _this = createVehicle ["Land_A_Castle_Wall1_20_Turn", [1852.8286, 14522.419, -0.61873305], [], 0, "CAN_COLLIDE"];
  58.   _vehicle_16 = _this;
  59.   _this setDir -172.51828;
  60.   _this setPos [1852.8286, 14522.419, -0.61873305];
  61. };
  62.  
  63. _vehicle_17 = objNull;
  64. if (true) then
  65. {
  66.   _this = createVehicle ["Land_A_Castle_Wall1_20_Turn", [1836.1681, 14529.896, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  67.   _vehicle_17 = _this;
  68.   _this setDir -127.38792;
  69.   _this setPos [1836.1681, 14529.896, -3.0517578e-005];
  70. };
  71.  
  72. _vehicle_18 = objNull;
  73. if (true) then
  74. {
  75.   _this = createVehicle ["Land_A_Castle_Wall1_20_Turn", [1826.3241, 14546.3, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  76.   _vehicle_18 = _this;
  77.   _this setDir -101.62762;
  78.   _this setPos [1826.3241, 14546.3, -9.1552734e-005];
  79. };
  80.  
  81. _vehicle_19 = objNull;
  82. if (true) then
  83. {
  84.   _this = createVehicle ["Land_A_Castle_Wall1_20_Turn", [1825.4071, 14562.133, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  85.   _vehicle_19 = _this;
  86.   _this setDir -63.975033;
  87.   _this setPos [1825.4071, 14562.133, -9.1552734e-005];
  88. };
  89.  
  90. _vehicle_20 = objNull;
  91. if (true) then
  92. {
  93.   _this = createVehicle ["fiberplant", [1848.5686, 14561.254, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  94.   _vehicle_20 = _this;
  95.   _this setPos [1848.5686, 14561.254, -3.0517578e-005];
  96. };
  97.  
  98. _vehicle_21 = objNull;
  99. if (true) then
  100. {
  101.   _this = createVehicle ["fiberplant", [1851.8132, 14559.369, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  102.   _vehicle_21 = _this;
  103.   _this setPos [1851.8132, 14559.369, 3.0517578e-005];
  104. };
  105.  
  106. _vehicle_22 = objNull;
  107. if (true) then
  108. {
  109.   _this = createVehicle ["fiberplant", [1855.7216, 14557.822, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  110.   _vehicle_22 = _this;
  111.   _this setPos [1855.7216, 14557.822, -3.0517578e-005];
  112. };
  113.  
  114. _vehicle_23 = objNull;
  115. if (true) then
  116. {
  117.   _this = createVehicle ["fiberplant", [1854.2354, 14555.021, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  118.   _vehicle_23 = _this;
  119.   _this setPos [1854.2354, 14555.021, 3.0517578e-005];
  120. };
  121.  
  122. _vehicle_24 = objNull;
  123. if (true) then
  124. {
  125.   _this = createVehicle ["fiberplant", [1844.4019, 14554.969, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  126.   _vehicle_24 = _this;
  127.   _this setPos [1844.4019, 14554.969, 9.1552734e-005];
  128. };
  129.  
  130. _vehicle_25 = objNull;
  131. if (true) then
  132. {
  133.   _this = createVehicle ["fiberplant", [1848.3602, 14552.539, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  134.   _vehicle_25 = _this;
  135.   _this setPos [1848.3602, 14552.539, 6.1035156e-005];
  136. };
  137.  
  138. _vehicle_26 = objNull;
  139. if (true) then
  140. {
  141.   _this = createVehicle ["fiberplant", [1846.9845, 14558.486, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  142.   _vehicle_26 = _this;
  143.   _this setPos [1846.9845, 14558.486, 6.1035156e-005];
  144. };
  145.  
  146. _vehicle_27 = objNull;
  147. if (true) then
  148. {
  149.   _this = createVehicle ["fiberplant", [1850.1957, 14555.672, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  150.   _vehicle_27 = _this;
  151.   _this setPos [1850.1957, 14555.672, 3.0517578e-005];
  152. };
  153.  
  154. _vehicle_28 = objNull;
  155. if (true) then
  156. {
  157.   _this = createVehicle ["fiberplant", [1853.4386, 14551.044, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  158.   _vehicle_28 = _this;
  159.   _this setPos [1853.4386, 14551.044, 6.1035156e-005];
  160. };
  161.  
  162. _vehicle_29 = objNull;
  163. if (true) then
  164. {
  165.   _this = createVehicle ["fiberplant", [1850.2931, 14548.325, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  166.   _vehicle_29 = _this;
  167.   _this setPos [1850.2931, 14548.325, 6.1035156e-005];
  168. };
  169.  
  170. _vehicle_30 = objNull;
  171. if (true) then
  172. {
  173.   _this = createVehicle ["fiberplant", [1845.5345, 14547.113, 0], [], 0, "CAN_COLLIDE"];
  174.   _vehicle_30 = _this;
  175.   _this setPos [1845.5345, 14547.113, 0];
  176. };
  177.  
  178. _vehicle_31 = objNull;
  179. if (true) then
  180. {
  181.   _this = createVehicle ["fiberplant", [1842.0387, 14552.205, 0], [], 0, "CAN_COLLIDE"];
  182.   _vehicle_31 = _this;
  183.   _this setPos [1842.0387, 14552.205, 0];
  184. };
  185.  
  186. _vehicle_32 = objNull;
  187. if (true) then
  188. {
  189.   _this = createVehicle ["fiberplant", [1840.1934, 14557.636, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  190.   _vehicle_32 = _this;
  191.   _this setPos [1840.1934, 14557.636, -3.0517578e-005];
  192. };
  193.  
  194. _vehicle_33 = objNull;
  195. if (true) then
  196. {
  197.   _this = createVehicle ["fiberplant", [1844.9763, 14564.415, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  198.   _vehicle_33 = _this;
  199.   _this setPos [1844.9763, 14564.415, 9.1552734e-005];
  200. };
  201.  
  202. _vehicle_34 = objNull;
  203. if (true) then
  204. {
  205.   _this = createVehicle ["fiberplant", [1837.2292, 14551.862, -0.00018310547], [], 0, "CAN_COLLIDE"];
  206.   _vehicle_34 = _this;
  207.   _this setPos [1837.2292, 14551.862, -0.00018310547];
  208. };
  209.  
  210. _vehicle_35 = objNull;
  211. if (true) then
  212. {
  213.   _this = createVehicle ["fiberplant", [1841.3921, 14548.144, 0], [], 0, "CAN_COLLIDE"];
  214.   _vehicle_35 = _this;
  215.   _this setPos [1841.3921, 14548.144, 0];
  216. };
  217.  
  218. _vehicle_36 = objNull;
  219. if (true) then
  220. {
  221.   _this = createVehicle ["fiberplant", [1836.4026, 14546.745, 0], [], 0, "CAN_COLLIDE"];
  222.   _vehicle_36 = _this;
  223.   _this setPos [1836.4026, 14546.745, 0];
  224. };
  225.  
  226. _vehicle_37 = objNull;
  227. if (true) then
  228. {
  229.   _this = createVehicle ["fiberplant", [1841.595, 14544.151, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  230.   _vehicle_37 = _this;
  231.   _this setPos [1841.595, 14544.151, 3.0517578e-005];
  232. };
  233.  
  234. _vehicle_38 = objNull;
  235. if (true) then
  236. {
  237.   _this = createVehicle ["fiberplant", [1846.5146, 14542.661, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  238.   _vehicle_38 = _this;
  239.   _this setPos [1846.5146, 14542.661, 3.0517578e-005];
  240. };
  241.  
  242. _vehicle_39 = objNull;
  243. if (true) then
  244. {
  245.   _this = createVehicle ["fiberplant", [1852.1639, 14544.738, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  246.   _vehicle_39 = _this;
  247.   _this setPos [1852.1639, 14544.738, -9.1552734e-005];
  248. };
  249.  
  250. _vehicle_40 = objNull;
  251. if (true) then
  252. {
  253.   _this = createVehicle ["fiberplant", [1856.9099, 14548.665, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
  254.   _vehicle_40 = _this;
  255.   _this setPos [1856.9099, 14548.665, -6.1035156e-005];
  256. };
  257.  
  258. _vehicle_41 = objNull;
  259. if (true) then
  260. {
  261.   _this = createVehicle ["fiberplant", [1858.7764, 14554.302, 0], [], 0, "CAN_COLLIDE"];
  262.   _vehicle_41 = _this;
  263.   _this setPos [1858.7764, 14554.302, 0];
  264. };
  265.  
  266. _vehicle_42 = objNull;
  267. if (true) then
  268. {
  269.   _this = createVehicle ["fiberplant", [1861.4005, 14558.62, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  270.   _vehicle_42 = _this;
  271.   _this setPos [1861.4005, 14558.62, 6.1035156e-005];
  272. };
  273.  
  274. _vehicle_43 = objNull;
  275. if (true) then
  276. {
  277.   _this = createVehicle ["fiberplant", [1857.9651, 14562.237, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  278.   _vehicle_43 = _this;
  279.   _this setPos [1857.9651, 14562.237, 3.0517578e-005];
  280. };
  281.  
  282. _vehicle_44 = objNull;
  283. if (true) then
  284. {
  285.   _this = createVehicle ["fiberplant", [1865.3434, 14554.677, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  286.   _vehicle_44 = _this;
  287.   _this setPos [1865.3434, 14554.677, 9.1552734e-005];
  288. };
  289.  
  290. _vehicle_45 = objNull;
  291. if (true) then
  292. {
  293.   _this = createVehicle ["fiberplant", [1862.8398, 14550.413, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  294.   _vehicle_45 = _this;
  295.   _this setPos [1862.8398, 14550.413, -9.1552734e-005];
  296. };
  297.  
  298. _vehicle_46 = objNull;
  299. if (true) then
  300. {
  301.   _this = createVehicle ["fiberplant", [1859.488, 14545.19, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
  302.   _vehicle_46 = _this;
  303.   _this setPos [1859.488, 14545.19, -6.1035156e-005];
  304. };
  305.  
  306. _vehicle_47 = objNull;
  307. if (true) then
  308. {
  309.   _this = createVehicle ["fiberplant", [1855.2102, 14541.52, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  310.   _vehicle_47 = _this;
  311.   _this setPos [1855.2102, 14541.52, 6.1035156e-005];
  312. };
  313.  
  314. _vehicle_48 = objNull;
  315. if (true) then
  316. {
  317.   _this = createVehicle ["fiberplant", [1851.3163, 14540.004, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  318.   _vehicle_48 = _this;
  319.   _this setPos [1851.3163, 14540.004, 9.1552734e-005];
  320. };
  321.  
  322. _vehicle_51 = objNull;
  323. if (true) then
  324. {
  325.   _this = createVehicle ["MASH", [1857.1199, 14527.835, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  326.   _vehicle_51 = _this;
  327.   _this setPos [1857.1199, 14527.835, 9.1552734e-005];
  328. };
  329.  
  330. _vehicle_52 = objNull;
  331. if (true) then
  332. {
  333.   _this = createVehicle ["MASH", [1849.9299, 14528.194, 0.00015258789], [], 0, "CAN_COLLIDE"];
  334.   _vehicle_52 = _this;
  335.   _this setPos [1849.9299, 14528.194, 0.00015258789];
  336. };
  337.  
  338. _vehicle_53 = objNull;
  339. if (true) then
  340. {
  341.   _this = createVehicle ["MASH", [1842.8369, 14529.003, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  342.   _vehicle_53 = _this;
  343.   _this setDir 1.4115604;
  344.   _this setPos [1842.8369, 14529.003, 3.0517578e-005];
  345. };
  346.  
  347. _vehicle_54 = objNull;
  348. if (true) then
  349. {
  350.   _this = createVehicle ["UH1Wreck", [1866.2976, 14533.436], [], 0, "CAN_COLLIDE"];
  351.   _vehicle_54 = _this;
  352.   _this setPos [1866.2976, 14533.436];
  353. };
  354.  
  355. _vehicle_55 = objNull;
  356. if (true) then
  357. {
  358.   _this = createVehicle ["HMMWVWreck", [1837.8145, 14537.307, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  359.   _vehicle_55 = _this;
  360.   _this setPos [1837.8145, 14537.307, -9.1552734e-005];
  361. };
  362.  
  363. _vehicle_56 = objNull;
  364. if (true) then
  365. {
  366.   _this = createVehicle ["Mi8Wreck", [1831.4304, 14547.41], [], 0, "CAN_COLLIDE"];
  367.   _vehicle_56 = _this;
  368.   _this setPos [1831.4304, 14547.41];
  369. };
  370.  
  371. //************************************ASSIGN OBJECTID AND OBJECTUID SO THEY CAN BE FOUND AND DELETED *******************
  372. _plantpositions = nearestObjects[getmarkerpos "center", ["fiberplanet"],5000];
  373. {
  374.  
  375. _uID = str(round(random 999999));
  376. _x setVariable ["ObjectID", _uID, true];
  377. _x setVariable ["ObjectUID", _uID, true];
  378. _x setVariable ["lastUpdate",time,true];
  379. }forEach _plantpositions;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement