hey this is probably pretty stupid and shows my lack of experience in data editor but i cant seem to make an ability that doesnt spam when i hold the key down. i just want an ability to cast when i press the button not spam it if i decide to hold the hotkey down. im not sure what i am doing wrong, i just use an instant effect ability.
Well, the way SC2 registers the hold hotkey is by just constantly repeating the button press. The easiest solution would be a cooldown for the ability.
hmm, then is there any reason why after the first initial button press for the ability cast, it pauses for a second then starts constantly repeating again. like it will cast once, then stop then continue repeating.
well that sucks then, seems i have no way to just have an ability event trigger only one time when pressed rather than the event being executed nonstop until i let go of the key.
cast/prepare time... hm i have both set to nothing but it still does that weird pause after first. its not even really a problem though... im using WASD keys for abilities rather than key input for less traffic so thats why i hold down the hotkey. only solution i can come up with sofar is just disabling the key after its pressed which will work i guess.
The pause is the normal behavior as well, it is to prevent a single hotkey press from triggering the button multiple times. Thats why it executes the ability only once, then waits 1 second, then considers the key as permanently pressed and will repeat the button press.
hey this is probably pretty stupid and shows my lack of experience in data editor but i cant seem to make an ability that doesnt spam when i hold the key down. i just want an ability to cast when i press the button not spam it if i decide to hold the hotkey down. im not sure what i am doing wrong, i just use an instant effect ability.
thanks!
Well, the way SC2 registers the hold hotkey is by just constantly repeating the button press. The easiest solution would be a cooldown for the ability.
hmm, then is there any reason why after the first initial button press for the ability cast, it pauses for a second then starts constantly repeating again. like it will cast once, then stop then continue repeating.
well that sucks then, seems i have no way to just have an ability event trigger only one time when pressed rather than the event being executed nonstop until i let go of the key.
Sounds like you have a cast/prepare time in there and maybe a looping effect so it keeps creating itself?
Edit: why would you want to wear out your keyboard by holding a key down all the time?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
cast/prepare time... hm i have both set to nothing but it still does that weird pause after first. its not even really a problem though... im using WASD keys for abilities rather than key input for less traffic so thats why i hold down the hotkey. only solution i can come up with sofar is just disabling the key after its pressed which will work i guess.
The pause is the normal behavior as well, it is to prevent a single hotkey press from triggering the button multiple times. Thats why it executes the ability only once, then waits 1 second, then considers the key as permanently pressed and will repeat the button press.
ohhh that really does make sense doesnt it lol. thanks for clarifying that because i was stumped.
@flyingspatula: Go
I believe it's just reading from windows. Open up notepad, and hold down W. It presses it once, pauses, and then spams. That's what happens ingame.