ReadINIFloatFromFile

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) 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.

See Also