Jump to content
  • 0

need a little help to change mutliple creategroups


Cubitron

Question

How can i change this to Multiple Groups like east west

 

_group = grpNull;
if (_plyrGroup != "") then {
{
if ((_x getVariable["GROUP",""]) == _plyrGroup) exitWith {
_group = group _x;
};
}forEach playableUnits;
 
if (isNull _group) then {
_group = createGroup west;
};
 
diag_log format["DEBUG Group Found: %1", _group];
} else {
_group = createGroup west;
diag_log format["DEBUG Group Created: %1", _group];
};
 
thanks Cubi
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...