ReadINIFloatFromFileAlt

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Returns the value of a setting as a float from a text file, relative to the game folder ("/Fallout New Vegas/...").

Syntax

[help]
(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.

See Also