Engine:Console commands: Difference between revisions

Line 8: Line 8:
== Reference ==
== Reference ==
In Engine, commands are divided into sets defined by [[module]]s. Some commands are always available by default. Others are only available by setting console context to that module first. In some modules, there can be a default command that gets run if no actual command is specified.
In Engine, commands are divided into sets defined by [[module]]s. Some commands are always available by default. Others are only available by setting console context to that module first. In some modules, there can be a default command that gets run if no actual command is specified.
Key:
* 'Global commands' and 'Global variables' - below are short-hand for commands placed in the 'global' context.
* 'Default command' - is run by default if its context is addressed by name or is the context is switched to:
*: 'lua print(1 + 3)' will print 3. Where 'lua' is a child context and 'print' is a real Lua command, not an Engine script one.
*: 'context lua; print(1 + 3); exit' will also print 3 and return to global. Where context is switched to, then the Lua command is run.
*: 'client start' will start the client module.
*: 'context client; start; context global' will start the client module and return to global.
* Command - a script command
* Variable - a script variable
* Alias - an alias or macro created using the global alias command
* Binding - key bindings to the keyboard or mouse buttons, or other real or virtual device things
* Associations - Module or context associations and features
* Service - here refers to messaging service. Which may be internal, local or through a network for send or recieve.


=== Data module ===
=== Data module ===