I'm trying to make system, which will terminate game as soon as someone nudges table via keyboard.
The following variables:
are listed in FP scripting help topic.
When used with getkeycode it returns Keycode of bound keys. It's good so far. When I nudge table the detected current/last keycode never changes so it may:
- trigger lockout using err.raise on any other action than nudging
- it'll not trigger the lockout at all
So how the hell can i acquire the current keycode after using nudge keys while playing?
PS: The FPT in zip file is attached to the post topic. After you begin playing red displays shows current and last detected keycode of pressed key. Green ones shows keycodes bound to each nudge direction key. How to test: after you begin playing(F5 in editor)press any key(with exception of ESC) and check red displays then begin nudging and also look for any change in red displays.
Edited by Titanic4, 04 March 2013 - 09:34 PM.