Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _weapons = weapons player - nonlethalweapons;
- _mags = magazines player;
- _holder = createVehicle ["weaponholder", getPosATL player, [], 0, "CAN_COLLIDE" ];
- if (count _weapons > 0) then
- {
- {player removeWeapon _x} forEach _weapons};
- if (count _mags > 0) then
- {
- {player removeMagazine _x} forEach _mags};
- {
- _holder addWeaponCargoGlobal [_x,1];
- }forEach _weapons;
- {
- _holder addMagazineCargoGlobal [_x,1];
- }forEach _mags;
- if ((count(HolsterArr select 0) >= 1)) then {
- private ["_i","_c","_class","_amount","_a79tmp"];
- _a79tmp = + (HolsterArr);
- for [{_i = 0}, {_i < count(_a79tmp select 0)}, {_i = _i + 1}] do {
- _class = (_a79tmp select 0) select _i;
- _holder addWeaponCargoGlobal [_class,1];
- HolsterArr = [];
- RL_PrimHWep = "empty";
- RL_PrimHolstered = false;
- RL_PH = false;
- };
- };
- _Pistol = (saveWeaponPistol select 0);
- _holder addWeaponCargoGlobal [_Pistol,1];
- player removeAction unholsterPistol;
- saveWeaponPistol set [1,false];
- holsterPistol = player addAction ["Holster Pistol","pistolControl.sqf",[true]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement