Forum Jump :

Author Message

Posts: 1189

Level: Member

Country: tr
Occupation: Computer Science student
Age: 23
In-game name: Wak

#195639 Posted at 2017-01-04 13:47        
Do you want to select some units for the player, or get the units that the player has selected? You said a script will run with the selected units so I assumed it was the latter.

private "_array";
_array = groupSelectedUnits player; // Will return units selected with F2, F3...

// Will select the first two units, highlighting them in the group bar
player groupSelectUnit [(units player) select 1, true];
player groupSelectUnit [(units player) select 2, true];

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage