Advertisement
TheGamingChief

Untitled

Jul 25th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. call fnc_AddRadiosToNonLethalWeapons;
  2. sleep 1;
  3. _weapons = weapons player - nonlethalweapons;
  4. _mags = magazines player;
  5. _holder = createVehicle ["weaponholder", getPosATL player, [], 0, "CAN_COLLIDE" ];
  6. 0 cutText["Your weapons have been removed.","PLAIN"];
  7.  
  8. if (count _weapons > 0) then
  9. {
  10. {player removeWeapon _x} forEach _weapons};
  11.  
  12. if (count _mags > 0) then
  13. {
  14. {player removeMagazine _x} forEach _mags};
  15.  
  16. {
  17. _holder addWeaponCargoGlobal [_x,1];
  18. }forEach _weapons;
  19. {
  20. _holder addMagazineCargoGlobal [_x,1];
  21. }forEach _mags;
  22.  
  23. HolsterArr = [];
  24. RL_PrimHWep = "empty";
  25. RL_PrimHolstered = false;
  26. RL_PH = false;
  27.  
  28. _Pistol = (saveWeaponPistol select 0);
  29. _holder addWeaponCargoGlobal [_Pistol,1];
  30. player removeAction unholsterPistol;
  31. saveWeaponPistol set [1,false];
  32. holsterPistol = player addAction ["Holster Pistol","pistolControl.sqf",[true]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement