Background for Fallout 4
Member of the Utility script
voidfunctionSetINIInt(stringini, intvalue)NativeGlobalDebugOnly

Description

Wiki Description

Sets an integer 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, iSettingName:SectionName.

intvalue

CK Wiki Description

The integer value to assign the setting.


Examples

; Set the "iRandomSetting" in the "[CoolSettings]" section to 5
Utility.SetINIInt("iRandomSetting:CoolSettings", 5)

Auto-Generated Example

string myString__ini
int myInt__value

Utility.SetINIInt(myString__ini, myInt__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.