Page 1 of 1

Big important question

Posted: Fri Jul 06, 2007 4:04
by Betanol
Is it possible to bind a key, any key, to execute a script?

i.e:

Bind "k" execute_script(2,0,0,0);




Thank You

Posted: Fri Jul 06, 2007 5:37
by NeoHippo
Take a look at this section in the WIKI

http://www.zdoom.org/wiki/index.php?tit ... eysections

Posted: Fri Jul 06, 2007 16:14
by Betanol
So it IS possible?!

Posted: Fri Jul 06, 2007 16:40
by KeksDose

Code: Select all

In KeyConf or in the console:

Alias BetanolScript "Puke *ScriptNumber*"

Bind YourKey "BetanolScript"
You can do that with anything, like something funny:

Code: Select all

Alias LOLZOMG "Summon Rocket ; Wait 5 ; LOLZONG"

Bind K "LOLZOMG"

Posted: Fri Jul 06, 2007 17:36
by Betanol
I got it.. nice!

Thanks guys!