Trankil 10 Posted January 17, 2014 I use ace mod and was wondering how to add more Mk82 to the A-10A. It gets a bit annoying when I have to keep restarting when I'm practicing. Cheers. (sorry if this is the wrong section) Share this post Link to post Share on other sites
big_wilk 12 Posted January 17, 2014 this removeMagazinesTurret ["4Rnd_Maverick_L159",[-1]]; this removeMagazinesTurret ["2Rnd_Sidewinder_AH1Z",[-1]]; this addMagazineTurret ["6Rnd_GBU12_AV8B",[-1]]; this addWeapon "BombLauncher"; this removeWeapon "MaverickLauncher_ACR"; this removeWeapon "SidewinderLaucher_AH1Z"; http://www.kylania.com/ex/?p=78 Share this post Link to post Share on other sites
Trankil 10 Posted January 17, 2014 I sort of just want to add like 100 Mk82 bombs to the A-10A without removing weapons. I'm fairly sure this is possible with 1 line of script, I just don't know how. Thanks for the advice anyways. Share this post Link to post Share on other sites
Harzach 2518 Posted January 19, 2014 Not sure why this is in configs & scripting, but for infinite ammo, all you need to do is place the following in your A-10's init field: this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}] For infinite fuel, you can also add: this addeventhandler ["fuel", {(_this select 0) setfuel 1}] Share this post Link to post Share on other sites
Joe98 92 Posted January 19, 2014 Anybody? Be aware that not all the fans of the game come to the forum every day. Wait a week and then type "bump". Anybody? is about as rude as you can get!And , the "experts" will typically respond that you need 50 lines of script to achieve your objective. In this case one line is plenty. A magazine holds 4 x GBU12 bombs. You already have one magazine. If you wish to add a second magazine type: {this addMagazine "4Rnd_GBU12"} forEach [1]; now you have two magazines ie eight bombs. If you want 100 bombs you need to add 24 magazines thus: {this addMagazine "4Rnd_GBU12"} forEach [1,2,3,4,5,6 etc etc I am sure you get it ...,24]; Now you have 25 magazines which makes 100 bombs. . . . Share this post Link to post Share on other sites
Harzach 2518 Posted January 19, 2014 And , the "experts" will typically respond that you need 50 lines of script to achieve your objective. Huh? As you said, one line of code is all that's necessary. Yours works fine, and is great for buffing up the loadout of any unit. Mine, though unrealistic, offers the benefit of infinite ammunition for all weapons, ideal for gunnery practice IMO. Share this post Link to post Share on other sites
Joe98 92 Posted January 20, 2014 Sorry, I was not referring to you. It was a generic comment about these forums. I have found ways to do a lot of things without scripts. . Share this post Link to post Share on other sites
Harzach 2518 Posted January 20, 2014 Sorry, I was not referring to you.It was a generic comment about these forums. I have found ways to do a lot of things without scripts. . I'm no expert, I can assure you of that! I just thought your comment was a little cynical - I can't imagine anyone with any scripting knowledge suggesting a solution more complicated than those we've mentioned here. But I'm getting off-topic, so enough of that. Share this post Link to post Share on other sites
Trankil 10 Posted January 20, 2014 Thanks for the answers guys. Sorry about the "anybody" comment. I was not aware that I should have waited a week or so. I just figured after two days I'd ask once more than give up. Again, sorry. I got what I need, so cheers. Share this post Link to post Share on other sites
robowilso 40 Posted July 29, 2014 For anyone interested in the topic of this thread "I need More ammo for practice and dont like to re-arm/land. Is there a proficient way to achieve this?" I just wanted to add another function that will work with vehicles & infantrymen alike... while {alive player} do {(vehicle player) setVehicleAmmo 1; sleep 0.01; }; _____ __ _____ ___:coop:__:partytime: _____ ____:coop:__:partytime: Share this post Link to post Share on other sites