Erenna Posted December 19, 2012 Share Posted December 19, 2012 Hey there. I'm trying to make a script that waits for a keypress, then stores it in a variable. Problem is, I can't figure out how to make the script pause until input is given. Anyone know how to do this? (Yes, I do realize this is probably fairly simple for most people, but none the less.) Link to comment Share on other sites More sharing options...
QQuix Posted December 19, 2012 Share Posted December 19, 2012 OnKeyDown (OBSE function) this example reacts to numeric key 0. For other key codes, check the OnKeyDown WIKI page. if OnKeyDown 82 ; NUM0 <do things> endif Link to comment Share on other sites More sharing options...
Erenna Posted December 19, 2012 Author Share Posted December 19, 2012 ...OK, should've been more specific. What I want it to do, is react to -any- key that's pressed and store the key that's pressed in a variable. Link to comment Share on other sites More sharing options...
QQuix Posted December 19, 2012 Share Posted December 19, 2012 GetKeyPress Check the OBSE doc. The "Input Functions" section have other functions that may interest you Link to comment Share on other sites More sharing options...
Recommended Posts