HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Selection Box

04-18-2008, 01:39 AM#1
TheSecretArts
Ok, I have a question.
If Player X selects say... 50 units (naturally only twelve would be commandable at once), how would I take ALL 50 units selected and add them to Unit Group X?
04-18-2008, 08:43 AM#2
The Elite
you cant
04-18-2008, 09:24 AM#3
Malf
If a player tries to select more than 12, only 12 units will be selected.

50 units are way too many for any map besides TDs and HDs and AoSes.
04-18-2008, 11:03 AM#4
TheSecretArts
aghmjgkh...
That sucks... thanks anyways.
04-18-2008, 04:36 PM#5
Zandose
I don't know what your doing, but what about an alternative way.

For every five units only one is selectable; either aloc the other units or make them controlled by a computer player (change their color to yours through trigger), and whenever the 'commander' is given an order the rest do the same. Of course, make a group for every five unit group.

Now, whenever you select your 'commanders' you can run through the groups making a larger one (the 50 thing you said before).

---

If your using NewGen use structs for each 'commander' group and attach the struct to the 'commanders' SetUnitUserData(). Now, when you select the 'commanders' you can easily run through each units struct.
04-18-2008, 09:22 PM#6
TheSecretArts
All selected units get filtered by rawcode into unit groups. For each unit group, a dummy unit gets created and selected and when given an order, all units in the unit group that the dummy points to will issue the command