List of console scripting commands

From Valve Developer Community
Jump to: navigation, search

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.


Source 2

Stub

This article or section is a stub. You can help by adding to it.

  • 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>.
  • execute_command_every_frame
  • echoln instead of echo
  • cyclevar instead of toggle
  • url_execute - (Possibly? Haven't tested to see what it does) - "Executes url-based commands, used for incoming commands from url-based launches when the game's already running."

See also

Scripting in the TF2 wiki - for scripting idioms.