This is going to be really quick and really easy. I'm only covering two things in this post: how to add a comment to your script, and how to do a simple bind.
First, commenting your scripts. Comments are used just so it's easy to tell what's been scripted without having to mentally parse the commands. Generally, I just describe what's supposed to happen. Comments are indicated by two slashes at the beginning of the line and anything that follows them is ignored. For example:
Hopefully, that's easy enough to understand.
Binding is also very straightforward. You need to tell TF2 that you want to bind a certain key to a specific command. For example, if I want to change my primary weapon from the default of "1" to "9":
There, it's done. What's important to note is that while "slot9" is the default bind for "9", now that you've overridden it "slot9" no longer has a key assigned to it. Also, unless you reset your binds in each class like I talked about in my previous post, this binding will stay for every class, every time you run the game after the script has been executed.
I hope this helps someone understand binds a bit better. Next time, I'll discuss Aliases and more complicated scripts.
No comments:
Post a Comment