calamity Posted November 19, 2013 Report Share Posted November 19, 2013 I,m sure there is prob a more difficult better way to accomplish this but this is what I did in server_monitor.sqf just under this part clearWeaponCargoGlobal _object; clearMagazineCargoGlobal _object; // _object setVehicleAmmo DZE_vehicleAmmo; add this just change to the vehicle you want //BTR40_MG_TK_GUE_EP1 remove ammo if (_object isKindOf "BTR40_MG_TK_GUE_EP1") then { _object removeMagazine "50Rnd_127x107_DSHKM"; _object removeMagazine "50Rnd_127x107_DSHKM"; _object removeMagazine "50Rnd_127x107_DSHKM"; _object removeMagazine "50Rnd_127x107_DSHKM"; _object removeMagazine "50Rnd_127x107_DSHKM"; }; to add a weapon just _object addWeapon "DSHKM"; to add magazine _object addMagazine "50Rnd_127x107_DSHKM"; to completely remove weapon _object removeWeapon "DSHKM"; here is the class name for all vehicles and weapon classnames. http://community.bistudio.com/wiki/ArmA_2:_Weapons#Vehicle_.26_Static_Weapons Link to comment Share on other sites More sharing options...
vy3si Posted November 20, 2013 Report Share Posted November 20, 2013 Hi for purchased vehicles you can do the same in server_publishVehicle2.sqf You can also use _object setVehicleAmmo 0; for removing all ammo. [there are few vehicles [mi24, ka62, ah64], where removeMagazine is not working for all ammo] if (_object isKindOf "HMMWV_Avenger") then { _object setVehicleAmmo 0; _object removeWeapon "StingerLaucher"; _object removeWeapon "M3P"; _object addWeapon "M240_veh"; }; To add/remove ammo to both guns in helicopter: if (_object isKindOf "CH_47F_EP1_DZE") then { _object addMagazineturret ["4000Rnd_762x51_M134",[1]]; _object addMagazineturret ["4000Rnd_762x51_M134",[0]]; }; Driver turret is [-1] Link to comment Share on other sites More sharing options...
calamity Posted November 20, 2013 Author Report Share Posted November 20, 2013 sweet thankz for that Link to comment Share on other sites More sharing options...
MatthewK Posted November 21, 2013 Report Share Posted November 21, 2013 Isn't vehicle ammo removed by default ? Link to comment Share on other sites More sharing options...
vy3si Posted November 21, 2013 Report Share Posted November 21, 2013 Isn't vehicle ammo removed by default ? No, it is only in default _DZE vehicles variants, but not in the standard arma 2 vehicles. So if you want add some, you have to do something like that. MatthewK 1 Link to comment Share on other sites More sharing options...
Korbi Dallas Posted January 16, 2014 Report Share Posted January 16, 2014 I was wondering if there would be a way to remove ammo from armed vehicles like the salvage menu for removing vehicle parts? It's kinda a bummer to either spend gold to buy ammo for them or spend time searching just to lose them at server restart. This way players could remove any leftover ammo saving it before restarts! Link to comment Share on other sites More sharing options...
howitzer Posted January 17, 2014 Report Share Posted January 17, 2014 I've managed to remove ammo from vehicles which have only 1 turret. I tried the code above with 2 turreted helicopters (UH1H_TK_EP1, MH60S), but the best i could achieve is to remove the ammo from one side. I removed the GL ammo from KA60_GL_PMC, but i couldn't remove the "57mm_launcher" or even the rockets from it "14Rnd_57mm_HE". I could't find any reference about the seat/turret numbers. Could anyone help me out? Link to comment Share on other sites More sharing options...
howitzer Posted January 19, 2014 Report Share Posted January 19, 2014 Okay, managed to remove all ammo with this: _object setVehicleAmmo 0; Link to comment Share on other sites More sharing options...
Wriggles Posted January 22, 2014 Report Share Posted January 22, 2014 How do you make it so all air vehicles are re armed on restart? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now