Katzok 10 Posted December 11, 2013 Hello Arma! My mission go to ready, but not yet. Briefly- all joined players have own (AI) team to command. So as AI ammo ends fast i use in they init this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}];, (AI never reload). It's not very nice if they shoot endlessly and without reloading (i don't like that). Next i find easy script mag.sqf //loop while {true} do { _this addmagazine "30Rnd_556x45_STANAG"; }; But now magazine runs unlimited. How to stop that and hold limited magazin (around as 5 magazine max)? regards Share this post Link to post Share on other sites
Katzok 10 Posted December 11, 2013 Hello Arma! Anyone? OK! I use old script and that a little better (with mag reloading), but need correct. Any help would be most welcome. Problem is script add every semi shoot a new magazine, correct is after 30 shoot add mag. this addeventhandler ["Fired",{if (_this select 1=="m16a4") then {_this select 0 addMagazine (_this select 5)}}] What is wrong? Thank you! Share this post Link to post Share on other sites
f2k sel 164 Posted December 11, 2013 This script will add magazines so the units do reload. http://forums.bistudio.com/showthread.php?156688-Unlimited-ammo-for-all-units-(including-units-created-during-the-mission)&p=2413997&viewfull=1#post2413997 Share this post Link to post Share on other sites
Katzok 10 Posted December 12, 2013 Thanks for your answer F2k Sel! Looks pretty nice, I'll try it. Share this post Link to post Share on other sites