List of console scripting commands: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Sakichan moved page List Console Scripting Commands to List of console scripting commands: *punches table*)
(Write short descriptions so that the list is a nice overview)
Line 4: Line 4:
It'd be bold to compare the console commands to a language with syntax, but the console does in fact, possess a few commands that don't affect the game world.  
It'd be bold to compare the console commands to a language with syntax, 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].
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.


<hr>
<hr>
* {{ent|alias}}
* {{ent|alias}} - Create a console subroutine
* {{ent|bind}}
* {{ent|bind}} - Run a console command when a key is pressed
* {{ent|condump}}
* {{ent|condump}}
* {{ent|con_filter_enable}}
* {{ent|con_filter_enable}}
Line 20: Line 20:
* {{ent|developer|<0-2>}}
* {{ent|developer|<0-2>}}
* {{ent|echo}}
* {{ent|echo}}
* {{ent|exec}}
* {{ent|exec}} - Execute a sequence of console commands from a file
* {{ent|execifexists}}
* {{ent|execifexists}}
* {{ent|execwithwhitelist}}
* {{ent|execwithwhitelist}}
* {{ent|incrementvar}}
* {{ent|incrementvar}} - Increment a Cvar
* {{ent|multvar}}
* {{ent|multvar}} - Multiply a Cvar
* {{ent|script}}
* {{ent|script}} - Run [[Vscript]]
* {{ent|setinfo}}
* {{ent|setinfo}} - Create a console variable (Cvar)
* {{ent|toggle}}
* {{ent|toggle}} - Interpolate a Cvar
* {{ent|wait}}
* {{ent|wait}} - Pause execution for N frames/ticks
* {{ent|whitelistcmd}}
* {{ent|whitelistcmd}}
== See also ==
== See also ==
[https://wiki.teamfortress.com/wiki/Scripting#Advanced_Scripting_Techniques Scripting in the TF2 wiki] - for scripting idioms.
[https://wiki.teamfortress.com/wiki/Scripting#Advanced_Scripting_Techniques Scripting in the TF2 wiki] - for scripting idioms.


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

Revision as of 08:53, 11 June 2023

Commands commonly used in Developer console scripting.

Most programming languages document the essential syntactic units of the language (statements), which are different from most built-in functions and all user-defined functions. 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 commands to a language with syntax, 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.


See also

Scripting in the TF2 wiki - for scripting idioms.