Engine:Console commands: Difference between revisions

Line 12: Line 12:
==== Data module ====
==== Data module ====
* In context by default
* In context by default
* Explicit context name is 'global'
* Default log assignment is 'log'
* Initial console assignment is 'console'
* Default command is 'varedit' if in context
* Default command is 'varedit' if in context
==== Commands ====
: [[MACRO varedit|varedit]] - (none), / - Prints or sets variable, if variable exists and name is not another command.
: [[MACRO varedit|varedit]] - (none), / - Prints or sets variable, if variable exists and name is not another command.
: [[MACRO var|var]] - var, /var - Creates a variable. If already exists, then does not change value.
: [[MACRO var|var]] - var, /var - Creates a variable. If already exists, then does not change value.
Line 22: Line 26:
: [[MACRO bind|context]] - context, /context - Change context. Change current console context to another known context.
: [[MACRO bind|context]] - context, /context - Change context. Change current console context to another known context.
: [[MACRO bind|run]] - run, /run - Load and run script file. Run a named script file. Name must include extension.
: [[MACRO bind|run]] - run, /run - Load and run script file. Run a named script file. Name must include extension.
==== Intrinsic vars ====
: [[CVAR lib_path|lib_path]] -
: [[CVAR lib_path|base_path]] -
: [[CVAR lib_path|module]] -
: [[CVAR lib_path|GameDll]] -
: [[CVAR lib_path|s_use_ai]] -
: [[CVAR lib_path|map]] -
: [[CVAR lib_path|startup]] -