Setting selection count

Demon4231

New Member
Reaction score
0
I'm trying to make a map that only allows people to select a maximum of 12 units at a time. I made a trigger that does that but it takes a second to remove the extra units. Since it takes a second you can put more than 12 units into a control group. Does anyone know of a way to limit the selection count without using a trigger?
 

Dan

The New Helper.Net gives me great Anxiety... o.O;;
Reaction score
159
I got your back here: (psuedocode)

1.player clicks or drags a unit group
2.add units to unitgroup myunitgroup
3.Unit Selection - Clear control group 1 for player 1
4.now add the 12 units of your choice to the control group from the saved units in myunitgroup

if this doesn't work I wouldn't know why. probably just need to do it in this order or else things could get funny.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top