Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Key Bindings
#1
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?
OneThatWalks
Web Developer, Java Programmer, Computer Builder....
Reply

#2
(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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
are you saying I can use buttonPressed('Numpad_1');? (or the ascii code)
OneThatWalks
Web Developer, Java Programmer, Computer Builder....
Reply

#4
possible keys are use,melee,attack,ads and jump (maybe some more)
Code:
for(;;)
{
if(self KEYbuttonpressed())
{
//doshit
}
wait .05;
}
[Image: MaEIQ.png]
Reply

#5
That cant be there should be some sort of way to grab key events.
OneThatWalks
Web Developer, Java Programmer, Computer Builder....
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.