Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _crate = "Box_East_Ammo_F";
- ["Open",[nil,_crate]] call bis_fnc_arsenal;
- //Lists of items to include
- _availableweapons = [
- 'arifle_CTAR_blk_F',
- 'arifle_CTAR_hex_F',
- 'arifle_CTAR_ghex_F',
- 'arifle_CTAR_GL_blk_F',
- 'arifle_CTAR_GL_hex_F',
- 'arifle_CTAR_GL_ghex_F',
- 'arifle_CTAR_blk_ACO_Pointer_F', // optic_ACO_grn / acc_pointer_IR
- 'arifle_CTAR_blk_Pointer_F', // acc_pointer_IR
- 'arifle_CTAR_blk_ACO_F', // optic_ACO_grn
- 'arifle_CTAR_GL_blk_ACO_F', // optic_ACO_grn
- 'arifle_CTAR_GL_blk_ARCO_Pointer_F', // optic_Arco_blk_F / acc_pointer_IR
- 'arifle_CTAR_blk_ARCO_Pointer_F', // optic_Arco_blk_F / acc_pointer_IR
- 'arifle_CTAR_blk_ACO_Pointer_Snds_F', // optic_ACO_grn / acc_pointer_IR / muzzle_snds_58_blk_F
- 'arifle_CTAR_GL_blk_ACO_Pointer_Snds_F', // optic_ACO_grn / acc_pointer_IR / muzzle_snds_58_blk_F
- 'arifle_CTAR_blk_ARCO_Pointer_Snds_F', // optic_Arco_blk_F / acc_pointer_IR / muzzle_snds_58_blk_F
- 'arifle_CTAR_blk_ARCO_F' // optic_Arco_blk_F
- ];
- [_crate,[_availableweapons],true] call BIS_fnc_addVirtualWeaponCargo;
- // Disable random button on Virtual Arsenal to prevent abuse
- [missionNamespace, "arsenalOpened", {
- disableSerialization;
- _display = _this select 0;
- (_display displayCtrl 44150) ctrlRemoveAllEventHandlers "buttonclick";
- (_display displayCtrl 44150) ctrlEnable false;
- _display displayAddEventHandler ["KeyDown", "if ((_this select 1) in [19,29]) then {true}"];
- }] call BIS_fnc_addScriptedEventHandler;
- systemChat format["Welcome to CCG Wasteland %1", name player];
- waitUntil {isNull (uiNamespace getVariable ["RscDisplayArsenal", displayNull])};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement