| 05-13-2009, 05:58 PM | #1 |
Hi everyone! I'm developing a new project and I've got the idea to use keyboard keys to trigger an ability instead of using the normal click abilities. I heard it is possible. But I don't know how it's done and if it's even compatible with multiplayer? does anyone know about this? |
| 05-13-2009, 06:05 PM | #2 |
It is very easy to add keyboard key commands, commonly known as hotkeys. It can be done in the object editor. However, disabling the normal way is not that easy, but it is not necessary. |
| 05-13-2009, 06:07 PM | #3 |
lol I know what hotkeys are, but I don't want a limit of 7 abilities per hero, due to the structure of my project I might need more and also because it gives a dynamic gameplay to the game |
| 05-13-2009, 06:58 PM | #4 |
You should have written that in your post. There is also a possibility that what you want to do requires a hacked wc3. |
| 05-13-2009, 09:42 PM | #5 |
u can have max tat amount of 7 different keys + the 6 numpads for items to simulate key detection. theres no way to just detect it like tat. Also teres a way to detect esc key without ability. tats it i think. If the unit is a shop or building then u can have 3*4 = 12 keys |
| 05-13-2009, 09:47 PM | #6 |
well it seems I have to stick with those limitations. Thank you guys anyway |
| 05-14-2009, 01:27 AM | #7 |
I was testing this years ago, but I believe you can show a dialog, than hide the UI, or something along the lines to hide it, and than assign keys to different buttons of the dialog, making a key detection system, downside is that dialogs are slow, and I forgot how it was done since it was years ago. |
| 05-14-2009, 04:40 PM | #8 |
A |
| 05-14-2009, 04:41 PM | #9 |
And if you need the Esc key, it triggers the event 'cinematic skipped' or something like that. |
