I have a dialog with, say, 4 buttons on it. They correspond to different unit spawns that will consistently happen throughout the game, so the point of this dialog is that you hit the button, press your hotkey, and that hotkey becomes the default hotkey for those unit groups.
In other words, say the first two buttons are Zerglings and Marines. I click the Zergling button, press 1. I click the Marine button, press 2.
Any zerglings that spawn are now added to hotkey 1, and any marines are added to hotkey 2.
So my idea to accomplish this (I'm a newbie, so this map is partially being made so I can figure out how to work this editor) is:
Note as far as I know everything like "UI - Disable any unit selection method for all players" is done in the action that enables up this trigger, so that, for example, allows only control group selections.
In the first trigger, I say to select a queen so that I can't have any overlords selected when the other trigger is enabled. Unfortunately, the moment the second trigger is enabled it goes off, and prints out the default GroupSeletion value, -1. (Also pans to the spawn location and death of the overlords)
So, any ideas why?
Better yet, is there a better way to grab a hotkey press?
Best way to grab hotkey press is to use a dummy ability that has the hotkey. Then simply detect that ability. The direct detection of the press is laggy as fuck.
When I do this, the rest of the game is paused and will restart afterwards (for unrelated reasons), so I don't particularly care if it is laggy.
Mor importantly, I want control group hotkeys, which are not necessarily the same for every player. Fortunately for me, if I have ctrl group9 bound to J, then as far as the editor is concerned if I hit J, that's control group 9. So unless I can change the ability hotkeys based on control group hotkeys that way won't work for me.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello there,
I have a dialog with, say, 4 buttons on it. They correspond to different unit spawns that will consistently happen throughout the game, so the point of this dialog is that you hit the button, press your hotkey, and that hotkey becomes the default hotkey for those unit groups.
In other words, say the first two buttons are Zerglings and Marines. I click the Zergling button, press 1. I click the Marine button, press 2.
Any zerglings that spawn are now added to hotkey 1, and any marines are added to hotkey 2.
So my idea to accomplish this (I'm a newbie, so this map is partially being made so I can figure out how to work this editor) is: Note as far as I know everything like "UI - Disable any unit selection method for all players" is done in the action that enables up this trigger, so that, for example, allows only control group selections.
In the first trigger, I say to select a queen so that I can't have any overlords selected when the other trigger is enabled. Unfortunately, the moment the second trigger is enabled it goes off, and prints out the default GroupSeletion value, -1. (Also pans to the spawn location and death of the overlords)
So, any ideas why?
Better yet, is there a better way to grab a hotkey press?
Thanks for your time!
Best way to grab hotkey press is to use a dummy ability that has the hotkey. Then simply detect that ability. The direct detection of the press is laggy as fuck.
@Karawasa: Go
When I do this, the rest of the game is paused and will restart afterwards (for unrelated reasons), so I don't particularly care if it is laggy.
Mor importantly, I want control group hotkeys, which are not necessarily the same for every player. Fortunately for me, if I have ctrl group9 bound to J, then as far as the editor is concerned if I hit J, that's control group 9. So unless I can change the ability hotkeys based on control group hotkeys that way won't work for me.