List of console scripting commands: Difference between revisions
No edit summary |
(start a section for documenting new Source 2 commands) |
||
Line 30: | Line 30: | ||
* {{ent|wait}} - Pause execution for N frames/ticks | * {{ent|wait}} - Pause execution for N frames/ticks | ||
* {{ent|whitelistcmd}} | * {{ent|whitelistcmd}} | ||
== Source 2== | |||
{{todo|Document exclusive [[Source 2]] commands.}} | |||
* {{ent|blink}} - Blink specified convar value between two values at the specified duration. | |||
* A pipe character (|) can now be used to compose commands <in a more complex way>. | |||
== 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:Lists of console commands and variables]] | [[Category:Lists of console commands and variables]] |
Revision as of 17:48, 18 June 2024
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.
- alias - Create a console subroutine
- bind - Run a console command when a key is pressed
- condump
- con_filter_enable
- con_filter_text
- con_filter_text_out
- con_notifytime
- con_log <file>
- con_logfile <file>
- con_timestamp
- con_trace
- developer <0-2>
- echo
- exec - Execute a sequence of console commands from a file
- execifexists
- execwithwhitelist
- incrementvar - Increment a Cvar
- multvar - Multiply a Cvar
- script - Run Vscript
- setinfo - Create a console variable (Cvar)
- toggle - Interpolate a Cvar
- wait - Pause execution for N frames/ticks
- whitelistcmd
Source 2
- blink - Blink specified convar value between two values at the specified duration.
- A pipe character (|) can now be used to compose commands <in a more complex way>.
See also
Scripting in the TF2 wiki - for scripting idioms.