Engine:Console commands: Difference between revisions

Line 35: Line 35:
Assignments:
Assignments:
: Explicit context name is 'global'
: Explicit context name is 'global'
: Default reachable contexts: 'client'
: Optional reachable contexts: 'lua'
: Default log assignment is 'log'
: Default log assignment is 'log'
: Initial console assignment is 'console'
: Initial console assignment is 'console'
==== Data Lua context ====
* Default command is 'lua_edit' if in context
Global commands:
: none
Global vars:
: none
Bindings:
: none
Assignments:
: Explicit context name is 'lua' reachable through 'global'
: Inherits 'global' context
Lua context commands:
: [[MACRO lua.lua_edit|lua_edit]] - (none), / - Runs Lua command in the main Lua runtime
: [[MACRO lua.run|run]] - lua run - Runs a Lua command in the Lua runtime
: [[MACRO lua.block|block]] - lua run - Runs a Lua command block in the Lua runtime
: [[MACRO lua.exit|exit]] - lua exit - Switches current context to 'global'
Lua context aliases:
: none


=== Msg module ===
=== Msg module ===
Line 86: Line 113:


Global commands:
Global commands:
: none
: [[MACRO console|console]] - console, /console - Opens command console


Global vars:
Global vars:
Line 92: Line 119:


Bindings:
Bindings:
: none
: KB_GRAVE - 192 - 'console'


Assignments:
Assignments:
: none
: Service name 'console'


=== World module ===
=== World module ===
Line 142: Line 169:


Client context commands:
Client context commands:
: [[MACRO client start|start]] - client start - Starts the 'client' module.
: [[MACRO client.start|start]] - client start - Starts the 'client' module.
: [[MACRO client stop|stop]] - client stop - Stops the 'client' module.
: [[MACRO client.stop|stop]] - client stop - Stops the 'client' module.


Client context aliases:
Client context aliases:
: [[MACRO client lol|lol]] - client lol - 'print "client lol"' - Demo alias. Prints "client lol".
: [[MACRO client.lol|lol]] - client lol - 'print "client lol"' - Demo alias. Prints "client lol".