Advertisement
Guest User

Untitled

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