Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. _crate = "Box_East_Ammo_F";
  2. ["Open",[nil,_crate]] call bis_fnc_arsenal;
  3.  
  4.  
  5. //Lists of items to include
  6. _availableweapons = [
  7. 'arifle_CTAR_blk_F',
  8. 'arifle_CTAR_hex_F',
  9. 'arifle_CTAR_ghex_F',
  10. 'arifle_CTAR_GL_blk_F',
  11. 'arifle_CTAR_GL_hex_F',
  12. 'arifle_CTAR_GL_ghex_F',
  13. 'arifle_CTAR_blk_ACO_Pointer_F', // optic_ACO_grn / acc_pointer_IR
  14. 'arifle_CTAR_blk_Pointer_F', // acc_pointer_IR
  15. 'arifle_CTAR_blk_ACO_F', // optic_ACO_grn
  16. 'arifle_CTAR_GL_blk_ACO_F', // optic_ACO_grn
  17. 'arifle_CTAR_GL_blk_ARCO_Pointer_F', // optic_Arco_blk_F / acc_pointer_IR
  18. 'arifle_CTAR_blk_ARCO_Pointer_F', // optic_Arco_blk_F / acc_pointer_IR
  19. 'arifle_CTAR_blk_ACO_Pointer_Snds_F', // optic_ACO_grn / acc_pointer_IR / muzzle_snds_58_blk_F
  20. 'arifle_CTAR_GL_blk_ACO_Pointer_Snds_F', // optic_ACO_grn / acc_pointer_IR / muzzle_snds_58_blk_F
  21. 'arifle_CTAR_blk_ARCO_Pointer_Snds_F', // optic_Arco_blk_F / acc_pointer_IR / muzzle_snds_58_blk_F
  22. 'arifle_CTAR_blk_ARCO_F' // optic_Arco_blk_F
  23. ];
  24.  
  25. [_crate,[_availableweapons],true] call BIS_fnc_addVirtualWeaponCargo;
  26.  
  27.  
  28. // Disable random button on Virtual Arsenal to prevent abuse
  29. [missionNamespace, "arsenalOpened", {
  30. disableSerialization;
  31. _display = _this select 0;
  32. (_display displayCtrl 44150) ctrlRemoveAllEventHandlers "buttonclick";
  33. (_display displayCtrl 44150) ctrlEnable false;
  34. _display displayAddEventHandler ["KeyDown", "if ((_this select 1) in [19,29]) then {true}"];
  35. }] call BIS_fnc_addScriptedEventHandler;
  36.  
  37. systemChat format["Welcome to CCG Wasteland %1", name player];
  38.  
  39. waitUntil {isNull (uiNamespace getVariable ["RscDisplayArsenal", displayNull])};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement