Difference between revisions of "Con SetGameSetting"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
(See also...)
imported>JOG
Line 16: Line 16:
*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.
*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 SetGameSetting [[:Category: Console Functions|Console Function]], and will behave as if you had called that function from the console.
*This function is identical to the SetGameSetting [[:Category: Console Functions|Console Function]], and will behave as if you had called that function from the console.
*'''Con_SetGameSetting''' does not work correct with variables as parameters. When you need to use variables, use [[SetNumericGameSetting]] instead.
*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.
*Changes made to game settings with this function will not be included in the savegame file, so if you want to make a permanent change to a game setting you will need code to update the value after a savegame is reloaded.
*Changes made to game settings with this function will not be included in the savegame file, so if you want to make a permanent change to a game setting you will need code to update the value after a savegame is reloaded.
Line 21: Line 22:


==See Also==
==See Also==
[[SetNumericGameSetting]]
[[GetGameSetting]]
[[GetGameSetting]]


[[Category: OBSE Functions|Setgamesetting]]
[[Category: OBSE Functions|Setgamesetting]]
[[Category: OBSE Console Functions|Setgamesetting]]
[[Category: OBSE Console Functions|Setgamesetting]]

Revision as of 09:36, 31 August 2006

A command for Oblivion Script Extender

Syntax:

con_SetGameSetting GMST value

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

Example

con_SetGameSetting iMagicMaxSummonedCreatureTypes 10

Sets the limit on the number of summonable creatures to 10.

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 SetGameSetting Console Function, and will behave as if you had called that function from the console.
  • Con_SetGameSetting does not work correct with variables as parameters. When you need to use variables, use SetNumericGameSetting instead.
  • This function was not designed to be run from scripts, and so may not work as expected.
  • Changes made to game settings with this function will not be included in the savegame file, so if you want to make a permanent change to a game setting you will need code to update the value after a savegame is reloaded.


See Also

SetNumericGameSetting

GetGameSetting