HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Pressing keys

03-29-2007, 10:26 AM#1
Carrein
Can anybody explain me how you do things like, if you press the left arrow button, you will move to the left ?

Thanks a billion :P I wont tell where it's for because... Secret :P
03-29-2007, 03:36 PM#2
Earth-Fury
Trigger:
Events
Player - Player 1 (Red) Presses the Left Arrow key
Player - Player 1 (Red) skips a cinematic sequence

You have to trigger it. The only keys that can be 'easily' triggerd are the arrow and the escape keys. Other keys have to be triggerd via dummy abilitys with the hotkey you want to detect.
03-29-2007, 07:31 PM#3
Dil999
Trigger:
Move Up
Collapse Events
Player - Player 1 (Red) Presses the Up Arrow key
Conditions
Collapse Actions
Unit - Order Footman 0000 <gen> to Move To ((Position of Footman 0000 <gen>) offset by (0.00, 384.00))
This is a simple one that moves Footman 0000 upwards 3 spaces (blocks, one is 128)
It leaks, though.