ItsMods

Full Version: Key Bindings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I haven't been able to find any way in this language, from what I have searched, to bind events to keys. Instead of using Usebuttonpressed() or whatever be something like buttonpressed('numpad_1').

I wonder if would work the same as java by using KeyEvent?
(04-20-2011, 22:57)OneThatWalks Wrote: [ -> ]I haven't been able to find any way in this language, from what I have searched, to bind events to keys. Instead of using Usebuttonpressed() or whatever be something like buttonpressed('numpad_1').

I wonder if would work the same as java by using KeyEvent?

buttonPressed() only works for the host
And its probably not the same as Java because GSC scripting is based on C++ I think
are you saying I can use buttonPressed('Numpad_1');? (or the ascii code)
possible keys are use,melee,attack,ads and jump (maybe some more)
Code:
for(;;)
{
if(self KEYbuttonpressed())
{
//doshit
}
wait .05;
}
That cant be there should be some sort of way to grab key events.