Difference between revisions of "Con SetINISetting"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Scruggs
(Corrected syntax; not for string values; changes not saved)
imported>WereWolf
Line 24: Line 24:
*This function was not designed to be run from scripts, and so may not work as expected.
*This function was not designed to be run from scripts, and so may not work as expected.


[[Category: OBSE Functions|Setinisetting]]
[[Category:Functions]]
[[Category: OBSE Console Functions|Setinisetting]]
[[Category:Functions (OBSE)]]
[[Category:Miscellaneous Functions]]
[[Category:Miscellaneous Functions (OBSE)]]

Revision as of 05:25, 15 September 2007

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.

Example

con_SetINISetting "bAllowHavokGrabTheLiving:Gameplay" 1

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

Notes

  • 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.