Guest User

Untitled

a guest
Jun 24th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //Written by beta
  2. //Kit out player according to starting equipment
  3.  
  4.  
  5. private ["_primw", "_muzzles"];
  6.  
  7. removeAllWeapons player;
  8. removeAllItems player;
  9.  
  10. {
  11. player addMagazine _x;
  12. } forEach (player getVariable "b_myMagazines");
  13.  
  14. {
  15. player addWeapon _x;
  16. } forEach (player getVariable "b_myWeapons");
  17.  
  18. player setVariable ["ACE_RuckMagContents", (player getVariable "b_myRuck")];
  19. player setVariable ["ACE_WeaponOnBack", (player getVariable "b_myBack")];
  20.  
  21. _primw = primaryWeapon player;
  22.  
  23. if (_primw != "") then
  24. {
  25. player selectWeapon _primw;
  26. _muzzles = getArray (configFile >> "cfgWeapons" >> _primw >> "muzzles");
  27. player selectWeapon (_muzzles select 0);
  28. };
Add Comment
Please, Sign In to add comment