ReadINIFloatFromFile
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) ReadINIFloatFromFile filepath:string Section:string Setting:string
Example
set fValue to ReadINIFloatFromFile "Data/nvse/plugins/supNVSE.ini" "Settings" "bTFCPosOnLoadFix"
Will return "bTFCPosOnLoadFix" value.
set fValue to ReadINIFloatFromFile "Data/nvse/plugins/JohnnyGuitar.ini" "Main" "bLoadEditorIDs"
Will return "bLoadEditorIDs" value.
Notes
- If the setting has a non-existent value - the function will return 0. If your value can potentially be zero and you want to determine whether result is zero or value doesn't exist - use ReadINIFloatFromFileAlt.