Engine:Console commands: Difference between revisions

Line 17: Line 17:
** Will start the client module and return to global. <pre>context client; start; context global</pre>
** Will start the client module and return to global. <pre>context client; start; context global</pre>
** Will print 'fred', using the 'global' default 'varedit' command. 'bob' is not a command but an existing variable. <pre lang="lua">var bob fred; bob</pre>  
** Will print 'fred', using the 'global' default 'varedit' command. 'bob' is not a command but an existing variable. <pre lang="lua">var bob fred; bob</pre>  
** Will print 'james'. Where the default command finds 'bob' and assigns 'james'. <pre lang="lua">bob james; bob</pre>
** Will print 'james'. Where the default command finds the existing 'bob', and assigns 'james'. <pre lang="lua">bob james; bob</pre>
* Command - a script command
* Command - a script command
* Variable - a script variable
* Variable - a script variable