Jump to content
Sign in to follow this  
chops

Problem woth "fire" and foreach command

Recommended Posts

I've got a group of two M119s leader named "tube" and the group called "pipes"

I have tried a trigger using

{_x fire "m119"} forEach units group tube

with no luck.

The fire command isn't the problem as

tube fire "m119"

works fine, as does

{_x setdamage 1} forEach units group tube

I have tried using the

_x fire ["m119","m119","30Rnd_105mmHE_M119"]

thing as well, with no luck. Can anybody see if they can get this to work?

My humble gratitude is yours

welcome.gif

Share this post


Link to post
Share on other sites

It should be:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{(Vehicle _x) fire "m119"} forEach (units tube)

The units command returns only the men. So you have to get a reference to the vehicles.

Share this post


Link to post
Share on other sites

You sir, are a gentleman and a scholar.

Thanks very much!

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  

×