Difference between revisions of "Con GetINISetting"
Jump to navigation
Jump to search
imported>Scruggs |
imported>DragoonWraith |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:con_GetINISetting}} | |||
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]] | ||
'''Syntax:''' | '''Syntax:''' | ||
con_GetINISetting " | con_GetINISetting "iniSettingName:Subsection::string" | ||
An alias for [[GetNumericINISetting]]. Returns the specified ini setting. | |||
iniSettingName is the name of the setting as it appears in the ini file. Subsection is the text in brackets that appears above the group to which the setting belongs. The quotes are required. | |||
==Example== | ==Example== | ||
Line 15: | Line 16: | ||
==Notes== | ==Notes== | ||
* | *This function can only handle settings whose name begins with 'b', 'i', or 'f', as Oblivion needs to know what type of variable it's returning and settings which do not begin with these letters could be of any variable type. | ||
*This function is identical to the GetINISetting [[:Category: Console Functions|Console Function]], and should behave as if you had called that function from the console. | *This function is identical to the GetINISetting [[:Category: Console Functions|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. | *This function was not designed to be run from scripts, and so may not work as expected. | ||
[[Category: | ==See Also== | ||
[[Category: OBSE Console Functions | * [[GetNumericINISetting]] | ||
* [[SetNumericINISetting]] | |||
* [[GetGameSetting]] | |||
* [[SetNumericGameSetting]] | |||
* [[Con_SetGameSetting]] | |||
[[Category:Functions]] | |||
[[Category:Functions (OBSE)]] | |||
[[Category:Console Functions (OBSE)]] |
Latest revision as of 11:40, 3 June 2011
A command for Oblivion Script Extender
Syntax:
con_GetINISetting "iniSettingName:Subsection::string"
An alias for GetNumericINISetting. Returns the specified ini setting. iniSettingName is the name of the setting as it appears in the ini file. Subsection is the text in brackets that appears above the group to which the setting belongs. The quotes are required.
Example[edit | edit source]
con_GetINISetting "bCrossHair:Gameplay"
Returns 0 or 1 based on whether the crosshair is enabled.
Notes[edit | edit source]
- This function can only handle settings whose name begins with 'b', 'i', or 'f', as Oblivion needs to know what type of variable it's returning and settings which do not begin with these letters could be of any variable type.
- This function is identical to the GetINISetting 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.