Jump to content
Sign in to follow this  
Katzok

Magazine Limit Script

Recommended Posts

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

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

Thanks for your answer F2k Sel! Looks pretty nice, I'll try it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×