IcyAxe 10 Posted January 22, 2011 (edited) Is there any posible way to get all groups? I want to get all groups even empty ones. Edited January 23, 2011 by PJani Share this post Link to post Share on other sites
ProfTournesol 956 Posted January 23, 2011 Well, something like a trigger covering the whole map, activated by anybody, once, and a command lauched into the "on activation" line of the trigger, such as : array_of_all_groups = [];{if (_x == leader _x) then {array_of_all_groups = array_of_all_groups + [group _x]} foreach thislist; Share this post Link to post Share on other sites
IcyAxe 10 Posted January 23, 2011 probably this wont work dynamicly and wont output empty groups or i am wrong? i have couple of scripts which are creating squad groups? Share this post Link to post Share on other sites
celery 8 Posted January 23, 2011 _westgroups=[];{if (count units _x>0 and side _x==west) then {_westgroups=_westgroups+[_x]}} forEach allGroups Do that every time you need an updated list. Share this post Link to post Share on other sites
ProfTournesol 956 Posted January 23, 2011 _westgroups=[];{if (count units _x>0 and side _x==west) then {_westgroups=_westgroups+[_x]}} forEach allGroupsDo that every time you need an updated list. Nope cause allGroups is an ARmA2 command ;) Share this post Link to post Share on other sites
celery 8 Posted January 23, 2011 Ooh, missed the missing 2. :p Share this post Link to post Share on other sites
IcyAxe 10 Posted January 23, 2011 is there anyway to override createGroups command so i can make my own wrap and store created groups in array. Or even maybe access each group thru some index which goes 0-some n? and then check if nullGroup? offtopic: why is arma missing so much basic commands? Share this post Link to post Share on other sites