Key pressed - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Key pressed (
/showthread.php?tid=121823)
Key pressed -
pascallj - 18.01.2010
Hello Everybody,
I was wondering if it's possible to assign other keys then just the default one in the game to use it in a script. LeftCTRL for example. Because I want to make spawnable ramps when someone is driving a vehicle. With the OnPlayerKeyState or something isn't it possible, is it?
If anyone can tell me, thank you :P.
Btw, I saw this in a other server and they did it too with LeftCTRL or LeftALT or so.
Greetz,
Pascal
Re: Key pressed -
MaykoX - 18.01.2010
Yes it is and use search... (Download any stunt gamemode)
Re: Key pressed -
WThieves - 18.01.2010
Quote:
Originally Posted by pascallj
Hello Everybody,
I was wondering if it's possible to assign other keys then just the default one in the game to use it in a script. LeftCTRL for example. Because I want to make spawnable ramps when someone is driving a vehicle. With the OnPlayerKeyState or something isn't it possible, is it?
If anyone can tell me, thank you :P.
Btw, I saw this in a other server and they did it too with LeftCTRL or LeftALT or so.
Greetz,
Pascal
|
Maybe, i don't really know but i've seen this to, and it is onlty lctrl and if it was the fire key click would also work but it doesn't.
Re: Key pressed -
Joe Staff - 18.01.2010
You can only use active keys.
Key List
Re: Key pressed -
pascallj - 18.01.2010
Quote:
Originally Posted by MaykoX
Yes it is and use search... (Download any stunt gamemode)
|
Like? And I've already searched..
@Joe Staff:
I thought that too, but MaykoX sais it's possible. (And I've seen it too in other server)
Re: Key pressed -
Joe Staff - 18.01.2010
Left Alt is, by default, walk and Left Control is Fire. Vehicle keys are differeent (W = sprint)
Re: Key pressed -
pascallj - 18.01.2010
Quote:
Originally Posted by Joe Staff
Left Alt is, by default, walk and Left Control is Fire. Vehicle keys are differeent (W = sprint)
|
Yes it's true, but what do you want to say with it?
Re: Key pressed -
Joe Staff - 18.01.2010
I'm implying that you can't just choose a key on the keyboard and make it do something. It has to be a key that's modifiable by the player to do something in game. Sprinting, Walking, Shooting, etc.
Re: Key pressed -
pascallj - 18.01.2010
Quote:
Originally Posted by Joe Staff
I'm implying that you can't just choose a key on the keyboard and make it do something. It has to be a key that's modifiable by the player to do something in game. Sprinting, Walking, Shooting, etc.
|
I thought that too, but MaykoX sais it's possible. (And I've seen it too in other server)
Re: Key pressed -
Joe Staff - 18.01.2010
I don't think MaykoX read the first post fully.