Background for Fallout 4
Member of the Utility script
voidfunctionSetINIBool(stringini, boolvalue)NativeGlobalDebugOnly

Description

Wiki Description

Sets a boolean value in the Fallout 4 Initialization Files (.ini).


Caveats

CK Wiki - Notes

This function can only change the values of pre-defined ini settings in Fallout4.ini and Fallout4Prefs.ini and only during the current game session. It cannot create new settings and does not save them to an ini file. There is also no guarantee the game will ever read the value again past initial load, so changing it may have no effect.


Parameters

stringini

CK Wiki Description

The .ini setting name and section. For example, bSettingName:SectionName.

boolvalue

CK Wiki Description

The boolean value to assign the setting.


Examples

; Set the "bRandomSetting" in the "[CoolSettings]" section to true
Utility.SetINIBool("bRandomSetting:CoolSettings", true)

Auto-Generated Example

string myString__ini
bool myBool__value

Utility.SetINIBool(myString__ini, myBool__value)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.