Select units in any game, and press shift/ctrl + 1. There, you have now created your "control group" hotkeyed to 1. Click 1 again to recall the control group (makes them your selected units)
I guess you probably already knew that, but didnt the know name ;)
And i dont know whether there is such a function. Check? Dunno if you can use variables as a workaround to get control groups :/
There seems to be no native function to get it but there are a bunch of other function to manipulate control group however. You could try to capture the event player press the key 0-9 down with Ctrl or Shift Required (not very lag intensive if you have ctrl or shift) and then get the currently selected units.
Select units in any game, and press shift/ctrl + 1. There, you have now
created your "control group" hotkeyed to 1. Click 1 again to recall the
control group (makes them your selected units)
I guess you probably already knew that, but didnt the know name ;)
And i dont know whether there is such a function. Check? Dunno if you
can use variables as a workaround to get control groups :/
ok that makes sense. Although I have seen some maps where the units are automatically added to a "control group" like in nexus wars the scv is added to all of the control groups....
if you can add them i would think theres some way to interrigate them
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
you can add units to control groups or clear them
thats about it.
i can't seem to grab them as a unit group and put them in a variable or anything.
i had considered the way progammer had suggested but it seemed... dodgy?
i guess i'm forced into it.
sadly i have another issue. im guessing it's a bug in the editor however.
P1 - Control Group 0
Events
UI - Player 1 presses 0 (Key) key Down with shift Allow, control Require, alt Allow
Local Variables
Units = (Empty unit group) <Unit Group>
Conditions
(Mechanics game value) == Hardcore
Actions
Variable - Set Units = (Selected units for player 1)
General - While (Conditions) are true, do (Actions)
Conditions
(Number of Living units in Units) > 12
Actions
Unit Group - Remove (Unit (Number of Living units in Units) from Units) from Units
Unit Selection - Clear control group 10 for player 1
Unit Selection - Add Units to control group 10 for player 1
this is my trigger for control group 0.
you cannot set the value field for control group to 0. it defaults back to 1.
value of 10 crashes the game
using a variable set to 0 and using that variable doesn't work either.
im guessing this is just a bug i'll have to report unless someone has any more insight?
This will not handle when the user uses button clicks on the UI to create the control group but would be easily modifyable to handle it if the Events exist.
Use the command -kill # to kill the specific control group
Refer to the Global variable : PlayerControlGroups[0-15][0-9] access the unit groups
does this exist?
whats a control group?
Select units in any game, and press shift/ctrl + 1. There, you have now created your "control group" hotkeyed to 1. Click 1 again to recall the control group (makes them your selected units)
I guess you probably already knew that, but didnt the know name ;)
And i dont know whether there is such a function. Check? Dunno if you can use variables as a workaround to get control groups :/
There seems to be no native function to get it but there are a bunch of other function to manipulate control group however. You could try to capture the event player press the key 0-9 down with Ctrl or Shift Required (not very lag intensive if you have ctrl or shift) and then get the currently selected units.
ok that makes sense. Although I have seen some maps where the units are automatically added to a "control group" like in nexus wars the scv is added to all of the control groups....
if you can add them i would think theres some way to interrigate them
@SouLCarveRR: Go
you can add units to control groups or clear them thats about it.
i can't seem to grab them as a unit group and put them in a variable or anything. i had considered the way progammer had suggested but it seemed... dodgy? i guess i'm forced into it.
sadly i have another issue. im guessing it's a bug in the editor however.
P1 - Control Group 0
Events
UI - Player 1 presses 0 (Key) key Down with shift Allow, control Require, alt Allow
Local Variables
Units = (Empty unit group) <Unit Group>
Conditions
(Mechanics game value) == Hardcore
Actions
Variable - Set Units = (Selected units for player 1)
General - While (Conditions) are true, do (Actions)
Conditions
(Number of Living units in Units) > 12
Actions
Unit Group - Remove (Unit (Number of Living units in Units) from Units) from Units
Unit Selection - Clear control group 10 for player 1
Unit Selection - Add Units to control group 10 for player 1
this is my trigger for control group 0.
you cannot set the value field for control group to 0. it defaults back to 1.
value of 10 crashes the game
using a variable set to 0 and using that variable doesn't work either.
im guessing this is just a bug i'll have to report unless someone has any more insight?
Made a Library Topic
http://forums.sc2mapster.com/resources/trigger-libraries/14906-detection-control-groups-to-unit-group-conversion/
[Detection]Control Groups to UnitGroup Conversion http://www.stardepot.org/uploads/soulcarver/ControlGrouptoUnitGroup.SC2Map
CONTROL GROUP TO UNIT GROUPS
For: SC2Mapster
By: SouLCarver
This will not handle when the user uses button clicks on the UI to create the control group but would be easily modifyable to handle it if the Events exist.
Use the command -kill # to kill the specific control group
Refer to the Global variable : PlayerControlGroups[0-15][0-9] access the unit groups
Disable to Kill unit Group trigger to use
works great. tyvm.
not sure if you tested control group 0? if you had the same issues i did in my previous post.
@maverck: Go
0 - 9 should all work for players 0-15