Template:Varcom

From Valve Developer Community
Revision as of 23:55, 26 July 2018 by Pinsplash (talk | contribs) (added one last example)
Jump to navigation Jump to search

{{{1}}}

{{{2}}}

This template can be used for both console variables and console commands.

Parameters:

  • {{{1}}}: Name of the variable or command.
    • {{{p}}}: Parameter(s) of the command, or for variables, the default value.
      • {{{d}}}: Descriptor for whatever is put in {{{p}}}. If {{{p}}} is not defined, {{{d}}} will not show.
  • {{{2}}}: Description of the command or variable.
{{varcom|noclip|Makes player ignore gravity and all solidity. Useful for observing and debugging.}}

noclip

Makes player ignore gravity and all solidity. Useful for observing and debugging.
{{varcom|sv_cheats|p=0|d=arbitrary number|<code>1</code> enables cheats on the server, which disables achievement progress and enables many more console commands.}}

sv_cheats 0(arbitrary number)

1 enables cheats on the server, which disables achievement progress and enables many more console commands.
{{varcom|setpos|p=x y <z optional>|d=coordinates|Puts the player at the coordinate triplet entered. If <code>z</code> is not specified, the player will maintain their current z position.}}

setpos x y <z optional>(coordinates)

Puts the player at the coordinate triplet entered. If z is not specified, the player will maintain their current z position.