Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 14.40 KB | None | 0 0
  1. _this addaction ["Create squad", {  
  2. _newGroup = group (_this select 1);  
  3.  
  4. _NVitems = [ "TRYK_Shemagh_TAN_NV", "TRYK_Shemagh_MESH_NV", "TRYK_US_ESS_Glasses_NV", "TRYK_ESS_BLKBLK_NV", "TRYK_G_Shades_Black_NV", "TRYK_ShemaghESSOD_NV", "TRYK_ShemaghESSTAN_NV", "TRYK_ShemaghESSMESH_NV", "TRYK_Shemagh_shade_G_N", "TRYK_Shemagh_shade_TAN_N", "TRYK_Shemagh_shade_MESH_N", "TRYK_Shemagh_G_NV"];  
  5.  
  6.  _newUnit = _newGroup createUnit ['I_Soldier_SL_F', [11713.4,3036.34,0.00143147], [], 0, 'CAN_COLLIDE'];  
  7.  _newUnit setSkill 0.5;  
  8.  _newUnit setRank 'PRIVATE';  
  9.  _newUnit setFormDir 130.649;  
  10.  _newUnit setDir 130.649;  
  11.  _newUnit setPosWorld [11713.4,3036.34,4.6889];  
  12. _newunit linkItem selectRandom _NVitems;  
  13. removeGoggles _newunit;  
  14.  
  15. _newUnit = _newGroup createUnit ['I_Soldier_AR_F', [11711,3037.78,0.00143909], [], 0, 'CAN_COLLIDE'];  
  16.  _newUnit setSkill 0.5;  
  17.  _newUnit setRank 'PRIVATE';  
  18.  _newUnit setFormDir 55.6489;  
  19.  _newUnit setDir 55.6489;  
  20.  _newUnit setPosWorld [11711,3037.78,4.69144];  
  21. _newunit linkItem selectRandom _NVitems;  
  22. removeGoggles _newunit;  
  23.  
  24. _newUnit = _newGroup createUnit ['I_Soldier_GL_F', [11709.6,3039.48,0.00143909], [], 0, 'CAN_COLLIDE'];  
  25.  _newUnit setSkill 0.5;  
  26.  _newUnit setRank 'CORPORAL';  
  27.  _newUnit setFormDir 191.249;  
  28.  _newUnit setDir 191.249;  
  29.  _newUnit setPosWorld [11709.6,3039.48,4.69144];  
  30. _newunit linkItem selectRandom _NVitems;  
  31. removeGoggles _newunit;  
  32.  
  33. _newUnit = _newGroup createUnit ['I_Soldier_M_F', [11707.3,3040.77,0.00143909], [], 0, 'CAN_COLLIDE'];  
  34.  _newUnit setSkill 0.5;  
  35.  _newUnit setRank 'PRIVATE';  
  36.  _newUnit setFormDir 115.649;  
  37.  _newUnit setDir 115.649;  
  38.  _newUnit setPosWorld [11707.3,3040.77,4.69144];  
  39. _newunit linkItem selectRandom _NVitems;  
  40. removeGoggles _newunit;  
  41.  
  42. _newUnit = _newGroup createUnit ['I_Soldier_AT_F', [11705.7,3042.67,0.00143909], [], 0, 'CAN_COLLIDE'];  
  43.  _newUnit setSkill 0.5;  
  44.  _newUnit setRank 'CORPORAL';  
  45.  _newUnit setFormDir 191.249;  
  46.  _newUnit setDir 191.249;  
  47.  _newUnit setPosWorld [11705.7,3042.67,4.69144];  
  48. _newunit linkItem selectRandom _NVitems;  
  49. removeGoggles _newunit;  
  50.  
  51. _newUnit = _newGroup createUnit ['I_Soldier_AAT_F', [11703.4,3043.88,0.00143909], [], 0, 'CAN_COLLIDE'];  
  52.  _newUnit setSkill 0.5;  
  53.  _newUnit setRank 'PRIVATE';  
  54.  _newUnit setFormDir 115.649;  
  55.  _newUnit setDir 115.649;  
  56.  _newUnit setPosWorld [11703.4,3043.88,4.69144];  
  57. _newunit linkItem selectRandom _NVitems;  
  58. removeGoggles _newunit;  
  59.  
  60. _newUnit = _newGroup createUnit ['I_Soldier_A_F', [11701.8,3045.83,0.00143909], [], 0, 'CAN_COLLIDE'];  
  61.  _newUnit setSkill 0.5;  
  62.  _newUnit setRank 'PRIVATE';  
  63.  _newUnit setFormDir 205.649;  
  64.  _newUnit setDir 205.649;  
  65.  _newUnit setPosWorld [11701.8,3045.83,4.69144];  
  66. _newunit linkItem selectRandom _NVitems;  
  67. removeGoggles _newunit;  
  68.  
  69. _newUnit = _newGroup createUnit ['I_medic_F', [11699.6,3047.06,0.00143909], [], 0, 'CAN_COLLIDE'];  
  70.  _newUnit setSkill 0.5;  
  71.  _newUnit setRank 'PRIVATE';  
  72.  _newUnit setFormDir 101.249;  
  73.  _newUnit setDir 101.249;  
  74.  _newUnit setPosWorld [11699.6,3047.06,4.69144];  
  75. _newunit linkItem selectRandom _NVitems;  
  76. removeGoggles _newunit;  
  77. _newunit addBackpack "";  
  78. _newunit addBackpack "TRYK_B_Medbag_OD";  
  79. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_packingBandage";};  
  80. for "_i" from 1 to 10 do {_newunit addItemToBackpack " ACE_epinephrine ";};  
  81. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_morphine";};  
  82. for "_i" from 1 to 10 do {_newunit addItemToBackpack "ACE_tourniquet";};  
  83. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_elasticBandage";};  
  84. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_quikclot";};  
  85. _newunit addItemToBackpack "ACE_personalAidKit";  
  86. _newunit addItemToBackpack "ACE_surgicalKit";  
  87.  
  88. _newGroup setFormation 'FILE';  
  89.  _newGroup setCombatMode 'YELLOW';  
  90.  _newGroup setBehaviour 'AWARE';  
  91.  _newGroup setSpeedMode 'NORMAL';  
  92. }, [], 10, true, true, "", "true", 5];  
  93.  
  94.  
  95. _this addaction ["Create fireteam", {  
  96.  
  97. _newGroup = group (_this select 1);  
  98.  
  99. _NVitems = [ "TRYK_Shemagh_TAN_NV", "TRYK_Shemagh_MESH_NV", "TRYK_US_ESS_Glasses_NV", "TRYK_ESS_BLKBLK_NV", "TRYK_G_Shades_Black_NV", "TRYK_ShemaghESSOD_NV", "TRYK_ShemaghESSTAN_NV", "TRYK_ShemaghESSMESH_NV", "TRYK_Shemagh_shade_G_N", "TRYK_Shemagh_shade_TAN_N", "TRYK_Shemagh_shade_MESH_N", "TRYK_Shemagh_G_NV"];  
  100.  
  101.  _newUnit = _newGroup createUnit ['I_Soldier_SL_F', [11713.4,3036.34,0.00143147], [], 0, 'CAN_COLLIDE'];  
  102.  _newUnit setSkill 0.5;  
  103.  _newUnit setRank 'PRIVATE';  
  104.  _newUnit setFormDir 130.649;  
  105.  _newUnit setDir 130.649;  
  106.  _newUnit setPosWorld [11713.4,3036.34,4.6889];  
  107. _newunit linkItem selectRandom _NVitems;  
  108. removeGoggles _newunit;  
  109.  
  110. _newUnit = _newGroup createUnit ['I_Soldier_AR_F', [11711,3037.78,0.00143909], [], 0, 'CAN_COLLIDE'];  
  111.  _newUnit setSkill 0.5;  
  112.  _newUnit setRank 'PRIVATE';  
  113.  _newUnit setFormDir 55.6489;  
  114.  _newUnit setDir 55.6489;  
  115.  _newUnit setPosWorld [11711,3037.78,4.69144];  
  116. _newunit linkItem selectRandom _NVitems;  
  117. removeGoggles _newunit;  
  118.  
  119. _newUnit = _newGroup createUnit ['I_Soldier_AT_F', [11709.6,3039.48,0.00143909], [], 0, 'CAN_COLLIDE'];  
  120.  _newUnit setSkill 0.5;  
  121.  _newUnit setRank 'CORPORAL';  
  122.  _newUnit setFormDir 191.249;  
  123.  _newUnit setDir 191.249;  
  124.  _newUnit setPosWorld [11705.7,3042.67,4.69144];  
  125. _newunit linkItem selectRandom _NVitems;  
  126. removeGoggles _newunit;  
  127.  
  128. _newUnit = _newGroup createUnit ['I_medic_F', [11707.3,3040.77,0.00143909], [], 0, 'CAN_COLLIDE'];  
  129.  _newUnit setSkill 0.5;  
  130.  _newUnit setRank 'PRIVATE';  
  131.  _newUnit setFormDir 101.249;  
  132.  _newUnit setDir 101.249;  
  133.  _newUnit setPosWorld [11699.6,3047.06,4.69144];  
  134. _newunit linkItem selectRandom _NVitems;  
  135. removeGoggles _newunit;  
  136. _newunit addBackpack "";  
  137. _newunit addBackpack "TRYK_B_Medbag_OD";  
  138. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_packingBandage";};  
  139. for "_i" from 1 to 10 do {_newunit addItemToBackpack " ACE_epinephrine ";};  
  140. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_morphine";};  
  141. for "_i" from 1 to 10 do {_newunit addItemToBackpack "ACE_tourniquet";};  
  142. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_elasticBandage";};  
  143. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_quikclot";};  
  144. _newunit addItemToBackpack "A CE_personalAidKit";  
  145. _newunit addItemToBackpack "ACE_surgicalKit";  
  146.  
  147. _newGroup setFormation 'FILE';  
  148.  _newGroup setCombatMode 'YELLOW';  
  149.  _newGroup setBehaviour 'AWARE';  
  150.  _newGroup setSpeedMode 'NORMAL';  
  151. }, [], 10, true, true, "", "true", 5];  
  152.  
  153. _this addaction ["Create recon team", {  
  154.  
  155.  
  156. _newGroup = group (_this select 1);  
  157.  
  158. _NVitems = [ "TRYK_Shemagh_TAN_NV", "TRYK_Shemagh_MESH_NV", "TRYK_US_ESS_Glasses_NV", "TRYK_ESS_BLKBLK_NV", "TRYK_G_Shades_Black_NV", "TRYK_ShemaghESSOD_NV", "TRYK_ShemaghESSTAN_NV", "TRYK_ShemaghESSMESH_NV", "TRYK_Shemagh_shade_G_N", "TRYK_Shemagh_shade_TAN_N", "TRYK_Shemagh_shade_MESH_N", "TRYK_Shemagh_G_NV"];  
  159. _SFunis = ["U_I_CombatUniform_shortsleeve", "U_I_CombatUniform", "U_I_CombatUniform_shortsleeve", "U_I_CombatUniform", "U_I_CombatUniform_shortsleeve", "U_I_CombatUniform", "U_IG_Guerilla1_1", "U_IG_leader", "U_BG_Guerilla1_2_F", "U_BG_Guerilla1_2_F"];  
  160. _SFhats = ["TRYK_H_wig", "TRYK_R_CAP_BLK", "TRYK_H_Bandana_wig", "H_Booniehat_dgtl", "H_Booniehat_dgtl", "H_Booniehat_dgtl", "H_Cap_headphones", "H_Cap_blk_Raven", "H_Cap_blk_Raven", "H_Cap_blk_Raven", "H_MilCap_dgtl", "H_MilCap_dgtl", "H_MilCap_dgtl", "H_Bandanna_khk_hs", "H_Shemag_olive", "H_Watchcap_camo", "H_Watchcap_camo", "H_Hat_Safari_olive_F"];  
  161.  
  162.  _newUnit = _newGroup createUnit ['I_Soldier_M_F', [11713.4,3036.34,0.00143147], [], 0, 'CAN_COLLIDE'];  
  163.  _newUnit setSkill 0.5;  
  164.  _newUnit setRank 'PRIVATE';  
  165.  _newUnit setFormDir 115.649;  
  166.  _newUnit setDir 115.649;  
  167.  _newUnit setPosWorld [11707.3,3040.77,4.69144];  
  168. _newunit linkItem selectRandom _NVitems;  
  169. removeGoggles _newunit;  
  170. _unistuff = uniformitems _newunit;  
  171. _veststuff = vestitems _newunit;  
  172.  
  173. _newUnit forceadduniform selectrandom _SFunis;  
  174. _newUnit addVest "V_PlateCarrierIA1_dgtl";  
  175.  
  176. _newUnit addWeapon "arifle_SPAR_03_blk_F";  
  177. _newUnit addPrimaryWeaponItem "muzzle_snds_B";  
  178. _newUnit addPrimaryWeaponItem "acc_pointer_IR";  
  179. _newUnit addPrimaryWeaponItem "optic_DMS";  
  180. _newunit addPrimaryWeaponItem "acc_pointer_IR";  
  181. _newunit selectweapon "arifle_SPAR_03_blk_F";  
  182. for "_currentuniitem" from 0 to (count _unistuff) do {  
  183.  
  184.  _newUnit additemtouniform (_unistuff select _currentuniitem)  
  185. }  
  186. ;  
  187.  
  188. for "_currentvestitem" from 0 to (count _veststuff) do {  
  189.  
  190.  _newUnit additemtovest (_veststuff select _currentvestitem)  
  191. }  
  192. ;  
  193.  
  194. _newUnit addHeadgear selectrandom _SFhats;  
  195.  
  196.  
  197. _newUnit = _newGroup createUnit ['I_Soldier_AR_F', [11711,3037.78,0.00143909], [], 0, 'CAN_COLLIDE'];  
  198.  _newUnit setSkill 0.5;  
  199.  _newUnit setRank 'PRIVATE';  
  200.  _newUnit setFormDir 55.6489;  
  201.  _newUnit setDir 55.6489;  
  202.  _newUnit setPosWorld [11711,3037.78,4.69144];  
  203. _newunit linkItem selectRandom _NVitems;  
  204. removeGoggles _newunit;  
  205. _unistuff = uniformitems _newunit;  
  206. _veststuff = vestitems _newunit;  
  207.  
  208. _newUnit forceadduniform selectrandom _SFunis;  
  209. _newUnit addVest "V_PlateCarrierIA1_dgtl";  
  210.  
  211. _newUnit addPrimaryWeaponItem "muzzle_snds_H_MG_blk_F";  
  212. _newUnit addPrimaryWeaponItem "acc_pointer_IR";  
  213. for "_currentuniitem" from 0 to (count _unistuff) do {  
  214.  
  215.  _newUnit additemtouniform (_unistuff select _currentuniitem)  
  216. }  
  217. ;  
  218.  
  219. for "_currentvestitem" from 0 to (count _veststuff) do {  
  220.  
  221.  _newUnit additemtovest (_veststuff select _currentvestitem)  
  222. }  
  223. ;  
  224.  
  225. _newUnit addHeadgear selectrandom _SFhats;  
  226.  
  227. _newUnit = _newGroup createUnit ['I_Soldier_AT_F', [11709.6,3039.48,0.00143909], [], 0, 'CAN_COLLIDE'];  
  228.  _newUnit setSkill 0.5;  
  229.  _newUnit setRank 'CORPORAL';  
  230.  _newUnit setFormDir 191.249;  
  231.  _newUnit setDir 191.249;  
  232.  _newUnit setPosWorld [11705.7,3042.67,4.69144];  
  233. _newunit linkItem selectRandom _NVitems;  
  234. removeGoggles _newunit;  
  235. _unistuff = uniformitems _newunit;  
  236. _veststuff = vestitems _newunit;  
  237.  
  238. _newUnit forceadduniform selectrandom _SFunis;  
  239. _newUnit addVest "V_PlateCarrierIA1_dgtl";  
  240.  
  241. _newunit addWeapon "arifle_SPAR_01_blk_F";  
  242. _newunit addPrimaryWeaponItem "muzzle_snds_M";  
  243. _newunit addPrimaryWeaponItem "acc_pointer_IR";  
  244. _newunit addPrimaryWeaponItem "optic_MRCO";  
  245. _newunit selectweapon "arifle_SPAR_01_blk_F";  
  246.  
  247. for "_currentuniitem" from 0 to (count _unistuff) do {  
  248.  
  249.  _newUnit additemtouniform (_unistuff select _currentuniitem)  
  250. }  
  251. ;  
  252.  
  253. for "_currentvestitem" from 0 to (count _veststuff) do {  
  254.  
  255.  _newUnit additemtovest (_veststuff select _currentvestitem)  
  256. }  
  257. ;  
  258.  
  259. _newUnit addHeadgear selectrandom _SFhats;  
  260.  
  261. _newUnit = _newGroup createUnit ['I_medic_F', [11707.3,3040.77,0.00143909], [], 0, 'CAN_COLLIDE'];  
  262.  _newUnit setSkill 0.5;  
  263.  _newUnit setRank 'PRIVATE';  
  264.  _newUnit setFormDir 101.249;  
  265.  _newUnit setDir 101.249;  
  266.  _newUnit setPosWorld [11699.6,3047.06,4.69144];  
  267. _newunit linkItem selectRandom _NVitems;  
  268. removeGoggles _newunit;  
  269. _newunit addBackpack "";  
  270. _newunit addBackpack "TRYK_B_Medbag_OD";  
  271. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_packingBandage";};  
  272. for "_i" from 1 to 10 do {_newunit addItemToBackpack " ACE_epinephrine ";};  
  273. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_morphine";};  
  274. for "_i" from 1 to 10 do {_newunit addItemToBackpack "ACE_tourniquet";};  
  275. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_elasticBandage";};  
  276. for "_i" from 1 to 20 do {_newunit addItemToBackpack "ACE_quikclot";};  
  277. _newunit addItemToBackpack "ACE_personalAidKit";  
  278. _newunit addItemToBackpack "ACE_surgicalKit";  
  279. _unistuff = uniformitems _newunit;  
  280. _veststuff = vestitems _newunit;  
  281.  
  282. _newUnit forceadduniform selectrandom _SFunis;  
  283. _newUnit addVest "V_PlateCarrierIA1_dgtl";  
  284.  
  285. _newunit addWeapon "arifle_SPAR_01_blk_F";  
  286. _newunit addPrimaryWeaponItem "muzzle_snds_M";  
  287. _newunit addPrimaryWeaponItem "acc_pointer_IR";  
  288. _newunit addPrimaryWeaponItem "optic_MRCO";  
  289. _newunit selectweapon "arifle_SPAR_01_blk_F";  
  290.  
  291.  
  292. for "_currentuniitem" from 0 to (count _unistuff) do {  
  293.  
  294.  _newUnit additemtouniform (_unistuff select _currentuniitem)  
  295. }  
  296. ;  
  297.  
  298. for "_currentvestitem" from 0 to (count _veststuff) do {  
  299.  
  300.  _newUnit additemtovest (_veststuff select _currentvestitem)  
  301. }  
  302. ;  
  303.  
  304. _newUnit addHeadgear selectrandom _SFhats;  
  305.  
  306. _newGroup setFormation 'FILE';  
  307.  _newGroup setCombatMode 'YELLOW';  
  308.  _newGroup setBehaviour 'AWARE';  
  309.  _newGroup setSpeedMode 'NORMAL';  
  310. }, [], 10, true, true, "", "true", 5];  
  311.  
  312.  
  313. _this addaction ["Create tank crew", {  
  314.  
  315.  
  316. _newGroup = group (_this select 1);  
  317.  
  318.  _newUnit = _newGroup createUnit ['I_crew_F', [11713.4,3036.34,0.00143147], [], 0, 'CAN_COLLIDE'];  
  319.  _newUnit setSkill 0.5;  
  320.  _newUnit setRank 'PRIVATE';  
  321.  _newUnit setFormDir 130.649;  
  322.  _newUnit setDir 130.649;  
  323.  _newUnit setPosWorld [11713.4,3036.34,4.6889];  
  324. _newunit linkItem "TRYK_US_ESS_Glasses_NV";  
  325. removeGoggles _newunit;  
  326.  
  327. _newUnit = _newGroup createUnit ['I_crew_F', [11711,3037.78,0.00143909], [], 0, 'CAN_COLLIDE'];  
  328.  _newUnit setSkill 0.5;  
  329.  _newUnit setRank 'PRIVATE';  
  330.  _newUnit setFormDir 55.6489;  
  331.  _newUnit setDir 55.6489;  
  332.  _newUnit setPosWorld [11711,3037.78,4.69144];  
  333. _newunit linkItem "TRYK_US_ESS_Glasses_NV";  
  334. removeGoggles _newunit;  
  335. _newGroup setFormation 'FILE';  
  336.  _newGroup setCombatMode 'YELLOW';  
  337.  _newGroup setBehaviour 'AWARE';  
  338.  _newGroup setSpeedMode 'NORMAL';  
  339. }, [], 10, true, true, "", "true", 5];  
  340.  
  341.  
  342. _this addaction ["Create helicopter copilot", {  
  343.  
  344.  
  345. _newGroup = group (_this select 1);  
  346.  
  347.  _newUnit = _newGroup createUnit ['I_helicrew_F', [11713.4,3036.34,0.00143147], [], 0, 'CAN_COLLIDE'];  
  348.  _newUnit setSkill 0.5;  
  349.  _newUnit setRank 'PRIVATE';  
  350.  _newUnit setFormDir 130.649;  
  351.  _newUnit setDir 130.649;  
  352.  _newUnit setPosWorld [11713.4,3036.34,4.6889];  
  353. _newunit linkItem "TRYK_Headset_NV";  
  354. removeGoggles _newunit;  
  355.  
  356. _newGroup setFormation 'FILE';  
  357.  _newGroup setCombatMode 'YELLOW';  
  358.  _newGroup setBehaviour 'AWARE';  
  359.  _newGroup setSpeedMode 'NORMAL';  
  360. }, [], 10, true, true, "", "true", 5];  
  361.  
  362.  
  363. _this addaction ["Delete all AI in squad", {  
  364. _playergroup = group (_this select 1);  
  365. {deletevehicle _x;  
  366. } foreach Units _playergroup;  
  367.  
  368. }, [], 10, true, true, "", "true", 5];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement