question about UnitGroup from BWSAL

26 views
Skip to first unread message

zhe wang

unread,
Aug 2, 2012, 12:09:16 PM8/2/12
to bw...@googlegroups.com
Hi, guys!
About the selectAll() function from Unitgroup, how to specified the size of the group?
I know I can do like this: UnitGroup myGroup = selectAll()(Marine,Medic);   only adding these two types of units in the group, but if I want to select 10 marine and 3 medic, how ?
I already tried many ways :
selectAll()(Marine,10,Medic,3);
selectAll()(Marine)(10)(Medic)(3);
etc..

but none of them worked..T_T

Krasimir Krystev

unread,
Aug 2, 2012, 3:06:59 PM8/2/12
to bw...@googlegroups.com
You can't do it out of the box using the unit selectors. Just select all marines:
selectAll()(Marine)  then the same with medics. Iterate over each of the group and consider the first X or Y of either one respectively.
--
BR

zhe wang

unread,
Aug 2, 2012, 11:50:20 PM8/2/12
to bw...@googlegroups.com
Thank you krasi0, you always help:)

在 2012年8月3日星期五UTC+9上午4时06分59秒,krasi0写道:
Reply all
Reply to author
Forward
0 new messages