49
edits
| Line 9: | Line 9: | ||
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. | ||
=== Data module === | |||
* In context by default | * In context by default | ||
* 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 23: | Line 22: | ||
: [[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]] - './lib/' - Path for native 'world' modules. | : [[CVAR lib_path|lib_path]] - './lib/' - Path for native 'world' modules. | ||
: [[CVAR lib_path|base_path]] - './data/' - Path for content and assets. | : [[CVAR lib_path|base_path]] - './data/' - Path for content and assets. | ||
| Line 31: | Line 30: | ||
: [[CVAR lib_path|map]] - 'maps/base1.bsp' - Full path for default content module | : [[CVAR lib_path|map]] - 'maps/base1.bsp' - Full path for default content module | ||
: [[CVAR lib_path|startup]] - (none) - Full path for initial startup script | : [[CVAR lib_path|startup]] - (none) - Full path for initial startup script | ||
==== Assignments ==== | |||
: Explicit context name is 'global' | : Explicit context name is 'global' | ||
: Default log assignment is 'log' | : Default log assignment is 'log' | ||
: Initial console assignment is 'console' | : Initial console assignment is 'console' | ||