Setinfo

From Valve Developer Community
Revision as of 07:48, 14 July 2018 by Pinsplash (talk | contribs) (Created page with "'''<code>setinfo</code>''' is a console command that creates a new console variable. The variable and its value will be preserved across map loads, and (possibly to your downf...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

setinfo is a console command that creates a new console variable. The variable and its value will be preserved across map loads, and (possibly to your downfall) game saves. There doesn't seem to be a way to mark one as a cheat.

Todo: Can it be used for commands too, in some way?

Syntax

setinfo VAR VALUE

If you wanted to make a variable to count how many NPCs you kill, you could type setinfo mykills 0. (Or you can set it to any impressive number ;) )

Note.pngNote:It is not limited to numbers. It can store words, too.

See Also