User Tools

Site Tools


guide:console_variable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
guide:console_variable [2017-03-21 09:23]
skyjake
guide:console_variable [2017-03-21 09:24] (current)
skyjake [Examples]
Line 1: Line 1:
 +====== Console variable ======
 +
 +
 +//Console variables// (cvar) are variables "​built-in"​ to the engine. The direct way to change and/or query their values is with the command line interface of the [[console]]. Most variables accept values only within a preset range appropriate for that variable.
 +
 +{{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 "​Console snapback is disabled"​ "​Console snapback is enabled"​
 +
 +
 +===== See also =====
 +
 +
 +  *  [[introduction_to_the_console]]
 +  *  [[console_variable_reference]]
 +
 +
 +
 +
  
guide/console_variable.txt ยท Last modified: 2017-03-21 09:24 by skyjake