Praveen Posted July 2, 2012 Posted July 2, 2012 I have trouble getting this work in game import Input Event OnInit()RegisterForSingleUpdate(0.1)EndEvent Event OnUpdate() if (IsKeyPressed(0x58)) Debug.MessageBox("weapons are added.") Stop() else RegisterForSingleUpdate(0.1) endif EndEvent The script compiles with no errors but not working in game , please help
simsam Posted February 9, 2013 Posted February 9, 2013 are you using a gamepad?onkeypress works for the keyboard only, at the moment at least :(
scrivener07 Posted February 9, 2013 Posted February 9, 2013 event Oninit()http://www.creationkit.com/RegisterForKey_-_Formendevent event OnKeyDown()http://www.creationkit.com/OnKeyDown_-_Formhttp://www.creationkit.com/UnregisterForKey_-_Formendevent
Recommended Posts