![]() |
|
Help Key Bindings - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help Key Bindings (/Thread-Help-Key-Bindings.html) |
Key Bindings - OneThatWalks - 04-20-2011 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? RE: Key Bindings - iAegle - 04-21-2011 (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'). buttonPressed() only works for the host And its probably not the same as Java because GSC scripting is based on C++ I think RE: Key Bindings - OneThatWalks - 04-23-2011 are you saying I can use buttonPressed('Numpad_1');? (or the ascii code) RE: Key Bindings - Pozzuh - 04-23-2011 possible keys are use,melee,attack,ads and jump (maybe some more) Code: for(;;)
{
if(self KEYbuttonpressed())
{
//doshit
}
wait .05;
}RE: Key Bindings - OneThatWalks - 04-23-2011 That cant be there should be some sort of way to grab key events. |