-
Notifications
You must be signed in to change notification settings - Fork 0
Shorthands
eaxs edited this page Dec 30, 2011
·
6 revisions
The framework has a number of shorthands for commands which allow you to write code faster. These shorthands are technically just variables with the values of the command. In order to use a shorthand, you have to evaluate the variable.
- $ (Shorthand for “Set”)
- $_ (Shorthand for “CreateVar”)
- $e (Shorthand for “ExecScript”)
- $c (Shorthand for “ClientExecScript”)
- $r (Shorthand for “RegisterEntityScript”)
- @ (Shorthand for “GoTo”)
- > (Shorthand for “SendMessage”)
- < (Shorthand for “echo”)
Print a console message:
#<# "Hello World"Create a variable called “hello_world”:
#$# hello_world "Hello"Run the script called “K2”:
#$e# K2