swtx 42 Posted November 11, 2016 So I making up a custom loadout.sqf and an init.sqf for my custom unit to include in my mod and its not working. Any help to get it working would be appreciated. The init file: null = [this] execVM "\Forest_DCU\data\scripts\Seal Team Six Commander.sqf";this addeventhandler ["respawn","_this execVM \Forest_DCU\data\scripts\Seal Team Six Commander.sqf"]; The custom loadout.sqf: waitUntil {!isNull player}; //to prevent MP / JIP issues _unit = _this select 0; removeallassigneditems _unit; removeallcontainers _unit; removeallweapons _unit; removebackpack _unit; removeuniform _unit; removevest _unit; // Headgear, Uniform & Vest _unit addheadgear "H_Cap_blk_CMMG"; _unit adduniform "Custom_Uniform"; _unit addvest "Custom_Vest1"; _unit addbackpack "Custom_Backpack_Carryall"; // Trinkets _unit additem "ItemCompass"; _unit additem "itemwatch"; _unit additem "ItemRadio"; _unit additem "FirstAidKit"; _unit additem "ItemMap"; _unit assignitem "ItemCompass"; _unit assignitem "itemwatch"; _unit assignitem "ItemRadio"; _unit assignitem "FirstAidKit"; _unit assignitem "ItemMap"; // weapons, attatchments & ammo _unit addweapon "srifle_EBR_ARCO_pointer_F"; _unit addmagazine ["20Rnd_762x51_Mag", 6]; _unit addmagazines ["HandGrenade", 4]; _unit addmagazines ["Smokeshell", 2]; this addBackpackCargo ["muzzle_snds_M", 1]; this addBackpackCargo ["muzzle_snds_acp", 1]; this addBackpackCargo ["Laserdesignator_02", 1]; _unit addPrimaryWeaponItem ""; _unit addPrimaryWeaponItem "acc_pointer_IR"; _unit addweapon "hgun_Pistol_heavy_01_MRD_F"; _unit addmagazine "11Rnd_45ACP_Mag; _unit addmagazine "11Rnd_45ACP_Mag; _unit addmagazine "11Rnd_45ACP_Mag; _unit addweapon "NVGoggles"; _unit assignItem "NVGoggles"; if(true) exitWith{}; Share this post Link to post Share on other sites
Grezvany13 64 Posted November 11, 2016 Well, I'm sure you could see the reason when you checked the RPT file since it's rather obvious ;) The following 3 lines are broken: _unit addmagazine "11Rnd_45ACP_Mag; _unit addmagazine "11Rnd_45ACP_Mag; _unit addmagazine "11Rnd_45ACP_Mag; They all miss the ending quotes, which causes a coding error. Share this post Link to post Share on other sites
swtx 42 Posted November 12, 2016 They all miss the ending quotes, which causes a coding error. Thank you for catching that. I corrected the issue and the .sqf still doesnt work. I guess I'm still missing something. 1 Share this post Link to post Share on other sites