incrementvar [Convar] [Min] [Max] [Amount]
This command will increment the specified convar by the specified amount. If the convar reaches the "max value" it will be set to "min value" and incremement from there.
Arguments are parameters that you add to a command. Find information about this command's arguments below.
|Convar||The name of the convar you wish to increment, e.g. "hud_scaling".|
|Min||The minimum number to set the convar to. The convar will not be incremented below this value. If maximum is reached, the convar will be set to this value.|
|Max||The maximum number to increment the convar to. If this number is reached via incrementation, the convar will be set to its minimum value.|
|Amount||The amount to increment the convar by.|
|Client or Server Command?||Both|
Find below working examples of this command (copy and paste into console).
incrementvar hud_scaling 0.6 0.85 0.05
This command would incremement your hud_scaling convar by 0.05 each time this command is ran. If incrementation would take hud_scaling over the maximum value we have set (0.85), the hud_scaling variable would be set to 0.6 (minimum). The hud_scaling command changes the scale of your HUD.