Navigation menu

Engine:CCMD alias: Difference between revisions

Jump to navigation Jump to search
No change in size ,  14 October 2023
Line 8: Line 8:


== Details ==
== Details ==
An 'alias' acts like a custom command, It runs the assigned text as a script, which can contain a single-word command, statement, or script. Used to give alternate name to commands or create custom commands in the current context.
An 'alias' acts like a custom command. It runs the assigned text as a script, which can contain a single-word command, statement, or script. Used to give alternate name to commands or create custom commands in the current context.


Aliases do not take any parameters and will run the command, statement, or script verbatim. If a for example an alias of named 'bob' is set to 'echo', it will always run exactly 'echo' which will print nothing, even if you run 'bob "some text". The second paramter will be ignored.
Aliases do not take any parameters and will run the command, statement, or script verbatim. If a for example an alias of named 'bob' is set to 'echo', it will always run exactly 'echo' which will print nothing, even if you run 'bob "some text". The second paramter will be ignored.