HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Keyboard events

09-01-2005, 02:54 AM#1
Spathis
How can I add additional keyboard events to my map? WE only has the up, left, down, right arrow keys, but I've seen maps with events triggered by keyboard shortcuts such as "Control + C" and etc. How is this possible?
09-01-2005, 04:53 PM#2
Tim.
What maps are you refering to? What action was taken when 'Ctrl+C' was used?

Bare in mind Control+ hotkeys are in Warcraft III already, they may have just been using one of those with adjusted settings.
09-02-2005, 04:41 AM#3
Spathis
In D&D Calim River, when you use "Control + C" the camera is unlocked. How would this be achieved?
09-02-2005, 03:26 PM#4
Tim.
Actually what Ctrl+C does is it makes the camera instantly pan to the last action that was processed or to the unit your currently selecting. All they did was lock the camera to a unit, when you hit Ctrl+C it locked the camera a second time, canceling the original lock.

There is no way to use keys other than the characters, and those only allow the unit to use a hotkey, not type a message.
09-02-2005, 10:52 PM#5
Spathis
I'm asking... how do you get that event to occur?
09-03-2005, 12:29 AM#6
Tim.
You dont. It's pre-programmed into Warcraft III. If you have a camera locked to a unit, and someone hits Ctrl+C, it unlocks the camera. Period. If you want to disable that, you simply need to lock the camera every half a second or so.

If its not working in your map, then its because your creating a camera every second, thats fine, but only lock the camera to the unit once when the map loads. Then you can unlock the camera. (Mind you, Ctrl+C cannot lock the camera back)
09-03-2005, 02:30 AM#7
Spathis
So this Control + C hotkey already occurs in EVERY map?
09-03-2005, 03:09 AM#8
drdlord
yes, it's part of warcraft, not part of the map so it's EVERYWHERE
09-06-2005, 03:02 PM#9
Tim.
Exactly. Its pre-programmed into the wc3 engine.