TittErS 13 Posted June 27, 2014 (edited) Functions : -addCustomMagazineAmmoCargo V1.0 -addCustomWeaponCargo V1.0 Description : This script adds 2 functions for add in a container, magazines preloaded or weapons with items attached and magazine loaded. -JIP compatible. -Functions can be executed by the server or the player USAGE : In init.sqf file add: // Functions TTS call compile preprocessFile "TTS_fnc\fn_addCustomMagazineAmmoCargo.sqf"; call compile preprocessFile "TTS_fnc\fn_addCustomWeaponCargo.sqf"; // addCustomMagazineAmmoCargo : Parameter(s): 0,1,2,.. : ARRAY - Array Magazine. 0 : STRING - Magazine Name. CfgMagazines. 1 : NUMBER - Ammo Number. Number of bullets in the magazine. ..,(last) : OBJECT - Destination. Add the magazine to Cargo ... Usage : [ ["MagazineName", AmmoNumber], Destination] OR [ ["MagazineName", AmmoNumber], ["MagazineName", AmmoNumber], ["MagazineName", AmmoNumber], Destination] Usage example : [ ["30Rnd_65x39_caseless_mag",8], box2] spawn TTS_fnc_addCustomMagazineAmmoCargo; [ ["30Rnd_65x39_caseless_mag",8], ["30Rnd_65x39_caseless_mag",8], ["30Rnd_65x39_caseless_mag",15], box1] spawn TTS_fnc_addCustomMagazineAmmoCargo; addCustomWeaponCargo : Parameter(s): 0,1,2,.. : ARRAY - Array Custom Weapon : 0 : STRING - Weapon Name. (CfgWeapons). 1,2,.. : ARRAY - Array Magazine. (Array Optional) Add a magazine with number defines bullet to weapon : 0 : STRING - Magazine name. (cfgMagazines). 1 : NUMBER - Ammo Number. Number of bullets in the magazine 1,2,.. : STRING - Item Name. (Optional) Attach Item at weapon. ..,(last) : OBJECT - Destination. Add the custom weapon to ... Usage : [ ["WeaponName", ["MagazineName",AmmoNumber], "ItemName"], Destination ] OR [ ["WeaponName", ["MagazineName",AmmoNumber], ["MagazineName",AmmoNumber], "ItemName", "ItemName", "ItemName"], Destination ] OR [ ["WeaponName", "ItemName", "ItemName"], Destination ] OR (add 2,3,4,.. weapons) [ ["WeaponName", ["MagazineName",AmmoNumber], "ItemName"], ["WeaponName", ["MagazineName",AmmoNumber], "ItemName"], ["WeaponName", ["MagazineName",AmmoNumber], "ItemName"], Destination ] Usage example : [ ["arifle_Katiba_GL_F", ["30Rnd_65x39_caseless_green",15], ["1Rnd_HE_Grenade_shell",1], "muzzle_snds_H", "acc_flashlight", "optic_Arco"], box2 ] spawn TTS_fnc_addCustomWeaponCargo; [ ["hgun_P07_F", ["16Rnd_9x21_Mag",2], "muzzle_snds_L"], box2 ] spawn TTS_fnc_addCustomWeaponCargo; [ ["arifle_MX_Black_F", "muzzle_snds_H"], box2 ] spawn TTS_fnc_addCustomWeaponCargo; [ ["arifle_MX_Black_F", ["30Rnd_65x39_caseless_mag",30], "muzzle_snds_H"], ["arifle_MX_Black_F", ["30Rnd_65x39_caseless_mag",15]], box2 ] spawn TTS_fnc_addCustomWeaponCargo; Thank you for the future bug reports, and contributions. Download : TTS_CWM V1.0 (Mission example + script) Add Custom Magazine/Weapon Cargo Changelog: 1.0 : Realase Edited June 28, 2014 by TittErS Share this post Link to post Share on other sites
militarypolice 10 Posted June 27, 2014 Cool thanks. Share this post Link to post Share on other sites
Guest Posted June 28, 2014 Release frontpaged on the Armaholic homepage. Add Custom Magazine/Weapon Cargo ================================================ We have also "connected" these pages to your account on Armaholic. This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Share this post Link to post Share on other sites