ConsoleCommand: Difference between revisions
Added information regarding "cl_protectcvars" and CVARINFO in 3.1.
DrinkyBird (talk | contribs) No edit summary |
(Added information regarding "cl_protectcvars" and CVARINFO in 3.1.) |
||
Line 31: | Line 31: | ||
* wait | * wait | ||
Aliases and bindings can be managed in a {{Zdoomwiki|KEYCONF}} lump. | Aliases and bindings can be managed in a {{Zdoomwiki|KEYCONF}} lump. | ||
==Notes== | |||
As of 3.1, if a user has [[Console_Variables|cl_protectcvars]] enabled then any changes made to a CVar's value using this function will not be saved permanently and the CVar's original value will be restored upon exiting the game. In addition, it is possible for [https://zdoom.org/wiki/CVARINFO CVARINFO] to redefine any CVars created using the "set" and "archivecvar" [https://zdoom.org/wiki/CCMDs:Customization CCMDs] with this function, so mods don't have to create new names for them anymore. This is also backwards compatible in case an old version of the mod is loaded afterwards. | |||
==Examples== | ==Examples== |