delloc 10 Posted June 27, 2009 Hello All, New to Arma 2 but not OFP. In OFP you could create units, connect them with group button, and then assign a group name with "alpha = group this" in the init location of the commander of the group. This appears to be different in Arma 2. I ve looked for other ways to do this but no luck, any suggestions? Share this post Link to post Share on other sites
charliereddog 9 Posted June 27, 2009 appears in what way? AS in, it works exactly as you describe it should?? Share this post Link to post Share on other sites
delloc 10 Posted June 27, 2009 No it appears not to work or my next implementation is wrong as well...which is I use the action command to move an entire squad into the c130... this is in the leaders init aplha = group this; {"_x moveInCargo cargo1"} forEach units group aplha ---------- Post added at 06:23 PM ---------- Previous post was at 06:08 PM ---------- Ok update, so alpha = group this, does work. I created a trigger that the condition was to see if the player belonged to group alpha and it fired off.... So I guess the real question is why the forEach command is not working properly... {"_x moveInCargo cargo1"} forEach units group aplha Share this post Link to post Share on other sites
KJT 0 Posted June 27, 2009 No it appears not to work or my next implementation is wrong as well...which is I use the action command to move an entire squad into the c130...this is in the leaders init aplha = group this; {"_x moveInCargo cargo1"} forEach units group aplha ---------- Post added at 06:23 PM ---------- Previous post was at 06:08 PM ---------- Ok update, so alpha = group this, does work. I created a trigger that the condition was to see if the player belonged to group alpha and it fired off.... So I guess the real question is why the forEach command is not working properly... {"_x moveInCargo cargo1"} forEach units group aplha Aplha or Alpha ? Share this post Link to post Share on other sites
CarlGustaffa 4 Posted June 27, 2009 No need for 'group'. Also, I haven't seen qoutes being used before. Anyways, this worked in the demo: {_x moveInCargo cargo1} forEach units alpha cargo1 being a truck. Triggered from a radio trigger. Note that you won't see error messages anymore like we did in OFP and Arma1. It truly sucks having to deal with the rpt file constantly. As if the text editor wasn't cluttered enough before from having 30+ scripts open at the same time... Share this post Link to post Share on other sites