Engine:Console commands: Difference between revisions

Line 12: Line 12:


=== Key ===
=== Key ===
* 'Global commands' and 'Global variables' - below are short-hand for commands placed in the 'global' context.
* 'Global commands' and 'Global variables' - 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 current context. Examples:
* 'Default command' - is run by default if its context is addressed by name or is the current context. Examples:
** Will print 3. Where the 'lua' context is addressable from 'global', and 'print' is a real Lua command, not an Engine script one. <pre>lua print(1 + 3)</pre>  
** Will print 3. Where the 'lua' context is addressable from 'global', and 'print' is a real Lua command, not an Engine script one. <pre>lua print(1 + 3)</pre>