Jump to content
Sign in to follow this  
Durka-Durka

Can't Empty Ammo Boxes

Recommended Posts

Hi all,

I've been following the editing guide for Arma1 on emptying ammo boxes and refilling them, but I can't get it to work on certain boxes for some reason. Below is the code I'm putting into the init box. It seems to work for the ordinance ammo box, but not for the launchers or basic boxes. (I'm not sure on which other boxes it doesn't work on as I haven't tried.)

ClearWeaponsCargo ;this; ClearMagazineCargo this;

this addweaponcargo ["m136",2]; this addmagazinecargo ["m136",2];

I didn't think the clearweaponscargo ;this was right, but I can't press "ok" without the editor saying I need it in there. Any suggestions?

Share this post


Link to post
Share on other sites

I think you put the ; at the wrong place.

ClearWeaponsCargo this; ClearMagazineCargo this; 
this addweaponcargo ["m136",2]; this addmagazinecargo ["m136",2];

Should be right. Can't test right now due to reinstall. :rolleyes:

Share this post


Link to post
Share on other sites

Thanks for the quick reply. That's the thing though, when I use that script you sent, it gives me the "Missing ;" every time, and moves the curser to the point between "ClearWeaponsCargo" and "this." I put the ; in that spot and it accepts it, yet nothing changes in the box. It's almost forcing me to use the code that I quoted above.

Share this post


Link to post
Share on other sites

Just tested, you've got an "s" too much... :rolleyes:

ClearWeaponCargo this; ClearMagazineCargo this; 
this addweaponcargo ["m136",2]; this addmagazinecargo ["m136",2];

Now it should work. :D

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  

×