Hold down a Key -1 reply

Please wait...

FireDragon100

The Internet ends at GF

50 XP

27th August 2008

0 Uploads

123 Posts

0 Threads

#1 10 years ago

Is this possible?

-> Hold down "F12" = godmode -> Release "F12" = change back to "no-godmode"

I mean... is it possible to bind a command to a key which has to be hold down and to reset the command automatically WITHOUT pressing the key again?

When I hold down F12 "god" shall be activated and when i release the key it shall automatically go back to normal-mode

(sorry about my english, I hope you can understand what i want to say :rolleyes: )




boddo

I'm too cool to Post

50 XP

3rd September 2008

0 Uploads

14 Posts

0 Threads

#2 10 years ago

you could make it a toggle key.

try /bind key god !

the '!' character toggles 1/0 each time its entered. so you can use it to toggle many commands. ( /cg_draw2d ! would toggle the HUD) not sure if it will work the same way with the 'god' command, you'll have to find out yourself.




tdawg2099

WU TANG CLAN!!!

50 XP

20th January 2008

0 Uploads

323 Posts

0 Threads

#3 10 years ago

1. Can you do this for sabers and 2. is there a way to bind 2 things to 1 key




boddo

I'm too cool to Post

50 XP

3rd September 2008

0 Uploads

14 Posts

0 Threads

#4 10 years ago
tdawg2099;46050391. Can you do this for sabers and 2. is there a way to bind 2 things to 1 key

1. pressing [1] on your keyboard toggles your saber already .......

>?

2. yes you can bind multiple commands to one key. /bind key first_command !; second_command !

that would toggle first_command and second_command on/off




tdawg2099

WU TANG CLAN!!!

50 XP

20th January 2008

0 Uploads

323 Posts

0 Threads

#5 10 years ago

no i mean hold down a button for one saber and let go for a different one..




UU_BobaFett

JKG Lead coder

50 XP

18th July 2006

0 Uploads

202 Posts

0 Threads

#6 10 years ago

Only the +xxxx commands can work in such fashion, as such you'll require a mod to make that work.




katanamaru

Fencer, Lifter, & Dancer

50 XP

3rd February 2006

0 Uploads

1,454 Posts

0 Threads

#7 10 years ago

I tried using the ! to toggle always run with this: bind u "cl_run !" That makes it go from always run to walking, but not back and forth. I've tried my hands at using the vstr command and couldn't get anything to work either. Any other ideas to make a button toggle between running and walking?