Skip to main content
Reads engine console variables by exact name.

Reading

get


The value in its natural type, or null when the convar doesn’t exist.

typeOf


The convar’s engine type from the table above, or null when it doesn’t exist.

Typed getters


null when the convar doesn’t exist. Numeric and bool convars convert between each other (getInt truncates); asking a string convar for a number, or a number convar for a string, throws TypeError.

Example

Mouse counts needed to turn a given angle, for input code that moves the mouse.