Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Spacebar detection is only achievable in single player because of desyncs.
As for the rest of the keys, pressing can be detected by giving units spells with the hotkey of the key you want to detect.
But only pressing is detectable, not releasing and holding.
As for the rest of the keys, pressing can be detected by giving units spells with the hotkey of the key you want to detect.
But only pressing is detectable, not releasing and holding.
It's not a built-in event - there's a way of doing it by setting the "home camera point" or whatever, I forgot what it's called, but it defaults to your start location (you press space, the camera instantly goes to your start location). What you can do, is, every X seconds, depends how responsive it needs to be (I'd use 0.02), check if the camera position is exactly at the "home" position, and if so, you have your "spacebar pressed" event. You can't detect releases, however, AFAIK.
Yeah, for the Spacebar event, I've also thought of Element of Water's solution, but apparently, that way can be inefficient, because some player may keep his camera hovering over the spacebar point, yet he has no spacebar button pressed. You would need some sort of camera lock to detect that, but still, this is something I haven't thought through enough.
Yeah, for the Spacebar event, I've also thought of Element of Water's solution, but apparently, that way can be inefficient, because some player may keep his camera hovering over the spacebar point, yet he has no spacebar button pressed. You would need some sort of camera lock to detect that, but still, this is something I haven't thought through enough.
Then just move the camera by 0.1 to the x-axis in the event and you're done. I don't think that there is a chance of setting a camera position to exactly 0.0 in coordinates (yes, it could happen, but the chance is very small).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.