List of console scripting commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added lang.)
(What is, and isn't, a "core console command"?)
Line 1: Line 1:
{{lang|Category:Core Console Commands}}
{{lang|Category:Core Console Commands}}
Commands commonly used in the [[Developer console]] and in [[CFG]] scripting. The basic building blocks used to manipulate the other specific-purpose commands and variables. For example, {{ent|alias}} can be used to make primitive [https://en.wikipedia.org/wiki/Subroutine subroutines].
Commands commonly used in the [[Developer console]] and in [[CFG]] scripting.


Idea of a "core command" borrowed from https://web.archive.org/web/20211022230451/https://old.reddit.com/r/tf2scripthelp/wiki/corecommands
Most programming languages document the essential syntactic units of the language ([https://en.wikipedia.org/wiki/Statement_(computer_science) statements]), from which built-in functions and all user-defined functions differ. Statements are uniquely meta-linguistic, they perform things like control flow, defining subroutines, jumping execution to certain lines, exiting the program, etc.
It'd be bold to compare the console's simple syntax to a language, but the console does in fact, possess a few commands that don't affect the game world.
 
These few commands affect nothing but the console itself, so they are meta-linguistic in a sense. It'd be nice to have a complete palette of them, as they are the basic building blocks that manipulate commands and convars that do affect the game world. For example, {{ent|alias}} can be used to make primitive [https://en.wikipedia.org/wiki/Subroutine subroutines].


[[Category:Console Commands]]
[[Category:Console Commands]]

Revision as of 03:21, 11 June 2023

English (en)Translate (Translate)

Commands commonly used in the Developer console and in CFG scripting.

Most programming languages document the essential syntactic units of the language (statements), from which built-in functions and all user-defined functions differ. Statements are uniquely meta-linguistic, they perform things like control flow, defining subroutines, jumping execution to certain lines, exiting the program, etc. It'd be bold to compare the console's simple syntax to a language, but the console does in fact, possess a few commands that don't affect the game world.

These few commands affect nothing but the console itself, so they are meta-linguistic in a sense. It'd be nice to have a complete palette of them, as they are the basic building blocks that manipulate commands and convars that do affect the game world. For example, alias can be used to make primitive subroutines.