ReadINIFloatFromFileAlt
From GECK
A function added by the SUP NVSE Plugin.
Contents
Description
Returns the value of a setting as a float from a text file, relative to the game folder ("/Fallout New Vegas/...").
Syntax
(fValue:float) ReadINIFloatFromFileAlt filepath:string Section:string Value:string
Example
set fValue to ReadINIFloatFromFileAlt "Data/nvse/plugins/supNVSE.ini" "Settings" "bTFCPosOnLoadFix"
Will return "bTFCPosOnLoadFix" value.
set fValue to ReadINIFloatFromFileAlt "Data/nvse/plugins/JohnnyGuitar.ini" "Main" "bLoadEditorIDs"
Will return "bLoadEditorIDs" value.
Notes
- If the setting has a non-existent value - the function will return a NAN number which you can check with IsNumberNAN function. Use it if needs value can potentially be zero. If it's not important - use ReadINIFloatFromFile.