Advertisement
Guest User

fnc_bridgeA2

a guest
Oct 19th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. _vehicle_2 = objNull;
  2. if (true) then
  3. {
  4. _this = createVehicle ["MAP_grav_60_10", [15257.237, 16241.487, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
  5. _vehicle_2 = _this;
  6. _this setDir -1.5076398;
  7. _this setPos [15257.237, 16241.487, 1.9073486e-006];
  8. };
  9.  
  10. _vehicle_3 = objNull;
  11. if (true) then
  12. {
  13. _this = createVehicle ["MAP_grav_6konec", [15257.377, 16235.457, -2.4795532e-005], [], 0, "CAN_COLLIDE"];
  14. _vehicle_3 = _this;
  15. _this setDir -1.4748868;
  16. _this setPos [15257.377, 16235.457, -2.4795532e-005];
  17. };
  18.  
  19. _vehicle_4 = objNull;
  20. if (true) then
  21. {
  22. _this = createVehicle ["MAP_grav_6konec", [15246.626, 16249.506, 4.0054321e-005], [], 0, "CAN_COLLIDE"];
  23. _vehicle_4 = _this;
  24. _this setDir 105.07574;
  25. _this setPos [15246.626, 16249.506, 4.0054321e-005];
  26. };
  27.  
  28. _vehicle_5 = objNull;
  29. if (true) then
  30. {
  31. _this = createVehicle ["MAP_grav_60_10", [15262.239, 16250.452, -6.2942505e-005], [], 0, "CAN_COLLIDE"];
  32. _vehicle_5 = _this;
  33. _this setDir -135.0363;
  34. _this setPos [15262.239, 16250.452, -6.2942505e-005];
  35. };
  36.  
  37. _vehicle_6 = objNull;
  38. if (true) then
  39. {
  40. _this = createVehicle ["MAP_grav_0_2000", [15262.146, 16250, 0.00018882751], [], 0, "CAN_COLLIDE"];
  41. _vehicle_6 = _this;
  42. _this setDir 52.395676;
  43. _this setPos [15262.146, 16250, 0.00018882751];
  44. };
  45.  
  46. _vehicle_7 = objNull;
  47. if (true) then
  48. {
  49. _this = createVehicle ["MAP_grav_0_2000", [15275.858, 16260.578, -0.00016117096], [], 0, "CAN_COLLIDE"];
  50. _vehicle_7 = _this;
  51. _this setDir 52.451637;
  52. _this setPos [15275.858, 16260.578, -0.00016117096];
  53. };
  54.  
  55. _vehicle_8 = objNull;
  56. if (true) then
  57. {
  58. _this = createVehicle ["MAP_grav_0_2000", [15289.623, 16271.094, 0.00019550323], [], 0, "CAN_COLLIDE"];
  59. _vehicle_8 = _this;
  60. _this setDir 51.27739;
  61. _this setPos [15289.623, 16271.094, 0.00019550323];
  62. };
  63.  
  64. _vehicle_9 = objNull;
  65. if (true) then
  66. {
  67. _this = createVehicle ["MAP_grav_0_2000", [15303.176, 16281.78, 6.3419342e-005], [], 0, "CAN_COLLIDE"];
  68. _vehicle_9 = _this;
  69. _this setDir 51.388813;
  70. _this setPos [15303.176, 16281.78, 6.3419342e-005];
  71. };
  72.  
  73. _vehicle_10 = objNull;
  74. if (true) then
  75. {
  76. _this = createVehicle ["MAP_grav_6konec", [15321.537, 16296.436, 3.7670135e-005], [], 0, "CAN_COLLIDE"];
  77. _vehicle_10 = _this;
  78. _this setDir -129.32579;
  79. _this setPos [15321.537, 16296.436, 3.7670135e-005];
  80. };
  81.  
  82. //START//
  83.  
  84. if (isNil "oneTime") then {
  85.  
  86. oneTime = true;
  87.  
  88.  
  89. fnc_bridgeA2 = {
  90. private ["_start","_obj"];
  91. _start = createVehicle [
  92. _this select 2,
  93. _this select 0,
  94. [],
  95. 0, "
  96. CAN_COLLIDE"
  97. ];
  98. _start setVectorUp [0,0,1];
  99. _start setDir (_this select 1);
  100. _start setPosATL (_this select 0);
  101. for "_i" from 1 to (_this select 3) do {
  102. _obj = createVehicle [
  103. _this select 2,
  104. _this select 0,
  105. [],
  106. 0,
  107. "CAN_COLLIDE"
  108. ];
  109. _obj attachTo [_start, [
  110. _i*(_this select 4),
  111. _i*(_this select 5),
  112. _i*(_this select 6)
  113. ]];
  114. };
  115. };
  116.  
  117. //END//
  118.  
  119.  
  120.  
  121. //Placement of objects//
  122. //[startingPosition, direction, objectClass, repeats, offsetX, offsetY, offsetZ]
  123.  
  124. [ [16653.469, 17273.926, -3.723206], -216.328388, "Land_nav_pier_m_2", 42, 40, 0, 0 ] call fnc_bridgeA2;
  125.  
  126. };
  127.  
  128. /* Airfield north - SA
  129. _vehicle_8 = objNull;
  130. if (true) then
  131. {
  132. _this = createVehicle ["MAP_nav_pier_m_2", [16653.469, 17273.926, -5.723206], [], 0, "CAN_COLLIDE"];
  133. _vehicle_8 = _this;
  134. _this setDir -36.328388;
  135. _this setPos [16653.469, 17273.926, -5.723206];
  136.  
  137. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement