incrementvar
incrementvar
is a console command available in all Source games.
incrementvar
is a console command which can increment a given console variable. In tandem with setinfo
, it can be used to count things arbitrarily.
Syntax
incrementvar CVAR MINVALUE MAXVALUE DELTA
- CVAR: a console variable we want to change.
- MINVALUE: a minimum bound for our variable.
- MAXVALUE: a maximum bound for our variable.
- DELTA: the amount to increase CVAR by. Set this to a negative number to decrement.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)