Jump to content
Sign in to follow this  
IcyAxe

[Arma]: array of all groups on one side

Recommended Posts

Is there any posible way to get all groups?

I want to get all groups even empty ones.

Edited by PJani

Share this post


Link to post
Share on other sites

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

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

_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
_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.

Nope cause allGroups is an ARmA2 command ;)

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×