Jump to content
Sign in to follow this  
col_kurtz1979

AddMagazine Foreach.....

Recommended Posts

I tried using the following code within an .sqs file....

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x addmagazine "hk"" foreach  (units group Mygroup)

When the script executes I get an error message.

Whats the correct way to to add magazines to units using the foreach command?

Searched but cant find anything.

Share this post


Link to post
Share on other sites

Try this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

{_x addmagazine "hk"} foreach units Mygroup

Klavan

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  

×