Con SetINISetting

A command for Oblivion Script Extender

Syntax:

con_SetINISetting "Setting:Category" value

Sets the desired setting in Oblivion.ini to the desired value while in game.

The setting must be quoted and must specify the specific setting first, followed by a colon and the heading under which the setting appears in the Oblivion.ini file.

This function works with numeric settings only; it cannot take a string as the second parameter.

The function does not change the contents of Oblivion.ini, and changes are not saved with the savegame. Thus, it may be necessary to reset the settings each time the game is loaded.

If Oblivion exits normally (without the typical CTD) the game will save any modified settings to the .ini file.

ExampleEdit

con_SetINISetting "bAllowHavokGrabTheLiving:Gameplay" 1

Allows the player to drag unconscious actors using the "grab" key.

NotesEdit

  • Due to limitations of the Wiki software, the title of this article, and links to it, cannot display it correctly - there is an underscore (_) in the function's name.
  • This function is identical to the SetINISetting Console Function, and should behave as if you had called that function from the console.
  • This function was not designed to be run from scripts, and so may not work as expected.