Removing unit from unit group?

Removing unit from unit group?

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Removing unit from unit group?

Post by very_bad_soldier »

Hi,

is it possible to remove a unit from a unit group? I think many years ago I managed to do it but I cannot find it anymore.

Thanks.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Removing unit from unit group?

Post by Beherith »

Code: Select all


//  bind                  q  groupselect
//  bind                  q  groupadd
//  bind             Ctrl+q  aiselect
//  bind            Shift+q  groupclear
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Removing unit from unit group?

Post by very_bad_soldier »

Yes, I am aware but it has no effect for me. Even though keydebug shows the action is triggered.
I select the units in question and press 'shift+q', yes?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Removing unit from unit group?

Post by Beherith »

Afaik yes, but i have not tested it :(
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Removing unit from unit group?

Post by very_bad_soldier »

I searched for string "groupclear" in spring source code and was kinda expecting to find a handler or something for that command but could not find anything. Could also be gadget dunno, but I think then this is currently not working.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Removing unit from unit group?

Post by Silentwings »

No idea about the old keybinds approach (wouldn't be surprised if they were deprecated/dead) but from lua iirc there is CMD.GROUPCLEAR and CMD.GROUPADD
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Removing unit from unit group?

Post by very_bad_soldier »

Thanks, maybe I will try that.
Ares
Balanced Annihilation Developer
Posts: 555
Joined: 19 Mar 2011, 13:43

Re: Removing unit from unit group?

Post by Ares »

`+ number = remove from group
` + number + alt = remove from autogroup
Post Reply

Return to “General Discussion”