Got Problems With Scripting
Olfred
Join Date: 2002-11-26 Member: 10040Members
in Tech Support
<div class="IPBDescription">blabla...</div> I want to make a script for the command console. But if I try to bind a hotkey with an alias, it don't work.
I tried to type hotkey88 in the console and it says "Unknown command: hotkey88"
Am I just too stupid for it? Or is it something else?
I hope somebody could help me.
I tried to type hotkey88 in the console and it says "Unknown command: hotkey88"
Am I just too stupid for it? Or is it something else?
I hope somebody could help me.
Comments
<a href='http://www.ticclan.com/tutorials/meangoofs-script-lessons/lesson1.html' target='_blank'>http://www.ticclan.com/tutorials/meangoofs...ns/lesson1.html</a>
Oh, by the way I know its for CS, but hey almost all tutorials about HL scripting are for CS. The principle is the same though. Some commands they discuss might not work thats all.
A good command reference and tips/tricks site is this:
<a href='http://half-life.gamehelp.com/console/scripts.html' target='_blank'>http://half-life.gamehelp.com/console/scripts.html</a>
Good luck.
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
alias health1 "hotkey88"
alias health2 "hotkey59"
alias com_heal "health1; health2"
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Maybe I made it wrong. It's my first time i make a script.
For the one who want to know why i want this 2 commands in a line.
hotkey88 switch to the item menu
hotkey59 gives health.
In a row it switch to the menu and than gives health.