Jump to content
Sign in to follow this  
gummybear_qc

Question about the addWeaponCargo script

Recommended Posts

Hey, my question is about adding multiple weapons to an ammobox using this script addWeaponCargo ["weapon1 ",1] in the Init fieldof the ammobox . So if lets say i wanna add 2 weapons, do i need to type down: addWeaponCargo ["weapon1 ",1];addWeaponCargo ["weapon2 ",1]; or is there another way? Thanks!

Share this post


Link to post
Share on other sites

_ambx = ammobox;
{
_ambx addWeaponCargo [_x,1];
} foreach [weapon1,weapon2];

If you want to add more weapons, add them to the array.

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  

×