This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
guide:console_variable [2017-03-21 07:23] – skyjake | guide:console_variable [2017-03-21 07:24] (current) – [Examples] skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Console variable ====== | ||
+ | |||
+ | |||
+ | //Console variables// (cvar) are variables " | ||
+ | |||
+ | {{note|The most commonly changed variables can also be adjusted from the [[control_panel]] GUI.}} | ||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | Displaying the value of the variable {{var|con-fps}} in the console: | ||
+ | vid-fps | ||
+ | |||
+ | Displaying {{cmd|help}} information for the variable {{var|con-move-speed}}: | ||
+ | help con-move-speed | ||
+ | |||
+ | Changing the value of the variable {{var|con-completion}} from the console (to **1**): | ||
+ | con-completion 1 | ||
+ | |||
+ | Changing the value of the variable {{var|rend-particle-rate}} with **force** from the console (to **10**): | ||
+ | rend-particle-rate force 10 | ||
+ | |||
+ | {{note|Forcing the value of a variable is not generally a good idea. Doing so tells Doomsday to ignore the predetermined accepted value range and sets the value regardless. This feature exists primarily for development purposes.}} | ||
+ | |||
+ | Querying the value of the variable {{var|con-snapback}} and using the {{cmd|if}} command to generate a status message: | ||
+ | if con-snapback = 0 " | ||
+ | |||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | |||
+ | * [[introduction_to_the_console]] | ||
+ | * [[console_variable_reference]] | ||
+ | |||
+ | |||
+ | |||
+ | |||