TheGamingChief icon

Untitled

TheGamingChief | PRO | 07/25/16 07:39:11 AM UTC | 0 ⭐ | 332 👁️ | Never ⏰ | []
text |

1.03 KB

|

None

|

0 👍

/

0 👎

_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]];

Comments