DMW 10 Posted April 30, 2014 Hi, So in a script on the AI's init i have: null=[] execVM "initAAman.sqf"; Now i want to just remove his main rifle, 5 mags and 1 AA missile, i have: eMan_AA1 removeWeaponGlobal (primaryWeapon eMan_AA1); (WORKS) eMan_AA1 removeMagazineGlobal "30Rnd_65x39_caseless_green"; (ONLY WORKS SINGLEPLAYER?!) eMan_AA1 removeMagazineGlobal "30Rnd_65x39_caseless_green"; eMan_AA1 removeMagazineGlobal "30Rnd_65x39_caseless_green"; eMan_AA1 removeMagazineGlobal "30Rnd_65x39_caseless_green"; eMan_AA1 removeMagazineGlobal "30Rnd_65x39_caseless_green"; eMan_AA1 removeMagazineGlobal "HandGrenade"; eMan_AA1 removeMagazineGlobal "HandGrenade"; eMan_AA1 removeMagazineGlobal "Titan_AA"; eMan_AA1 action ["useWeapon",eMan_AA1,eMan_AA1,1]; eMan_AA1 doWatch insHeli; eMan_AA1 doTarget insHeli; eMan_AA1 doFire insHeli; I have tried all the various combinations of remove magazine, ive tried putting the scirpt in the init.sqf and all sorts What works: His main weapon is removed in single and multiplayer All his magazines are removed in single player only What doesnt work: In multiplayer his caseless magazines are still there!!! Im about to throw something out the window, any help?? Cheers Share this post Link to post Share on other sites
Belbo 461 Posted April 30, 2014 So... do you want to remove all his magazines, or just five? If you want to remove all magazines, try this instead: _unit = eMan_AA1; removeallWeapons _unit; {_unit removeMagazine _x} forEach magazines _unit; or if you put it in the unit's init, you could go for _unit = _this select 0; Share this post Link to post Share on other sites
DMW 10 Posted April 30, 2014 No just those 5 listed, this is confusing me because surely that wont work coop without "Global"? Ive had problems before where I have hosted coop games and AI will have x loadout for me and my friend will look and the enemy will have their default loadout... Share this post Link to post Share on other sites
Belbo 461 Posted April 30, 2014 No just those 5 listed, this is confusing me because surely that wont work coop without "Global"?Ive had problems before where I have hosted coop games and AI will have x loadout for me and my friend will look and the enemy will have their default loadout... You could alternatively remove all magazines and then readd the ones you want to have on the unit. It's kind of curious, because usually removeMagazine hast loca arguments, but it's effect is global. At least it definitely works for me. Share this post Link to post Share on other sites
DMW 10 Posted April 30, 2014 Ok it seems like removeMagazineGlobal is bugged and only works single player or something and removeMagazine works MP - damn thanks for your help :) Share this post Link to post Share on other sites
Belbo 461 Posted April 30, 2014 Ok it seems like removeMagazineGlobal is bugged and only works single player or something and removeMagazine works MP - damn thanks for your help :) I thought it must have been something along those lines... You're welcome! Share this post Link to post Share on other sites
Azza FHI 50 Posted April 30, 2014 Use removemagazines ["magName", 4] Share this post Link to post Share on other sites