Advertisement
Guest User

code.sqf

a guest
Jan 9th, 2019
185
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //this addAction ["get weapon1","code.sqf", ["arifle_TRG20_F", ["optic_Nightstalker", "muzzle_snds_M", "acc_flashlight"]]];
  2. //this addAction ["get weapon2","code.sqf", ["arifle_MXM_F", ["muzzle_snds_H_snd_F", "acc_pointer_IR", "optic_Hamr", "bipod_01_F_snd"]]];
  3.  
  4. _group = createGroup west;
  5. //_unit = _group createUnit [ "B_Soldier_F", [0, 0, 0], [], 0, "CAN_COLLIDE" ];
  6. _unit = _group createUnit [ "B_Soldier_F", position player, [], 0, "CAN_COLLIDE" ];
  7.  
  8. waitUntil { !isNull _unit };
  9. //hideObjectGlobal _unit;
  10.  
  11. removeAllWeapons _unit;
  12. _unit addWeapon ((_this select 3) select 0);
  13.  
  14. _weapon = primaryWeapon _unit;
  15. _container = backpackContainer player;
  16.  
  17. {
  18.   _unit addPrimaryWeaponItem _x;
  19.   waitUntil { _x in ( _unit weaponAccessories _weapon ) };
  20. } forEach ((_this select 3) select 1);
  21.  
  22. _unit action [ "DropWeapon", _container, _weapon ];
  23. sleep 2;
  24.  
  25. deleteVehicle _unit;
  26. deleteGroup _group;
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement