GetINIInt - Utility

From the CreationKit Wiki
Revision as of 09:23, 10 November 2012 by imported>JustinOther (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' UI Script {{SKSEFunction|1.04.02}} '''Member of:''' Utility Script Gets an int IN...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: UI Script

Minimum required SKSE Version: 1.04.02 Member of: Utility Script

Gets an int INI setting's value.

Syntax[edit | edit source]

Function GetINIInt(String ini) Native Global

Parameters[edit | edit source]

ini: The ini setting to get

Return Value[edit | edit source]

Returns the value of the specified int INI setting.

Notes[edit | edit source]

This works for Bethesda created settings only, whether in Skyrim.ini, SkyrimPrefs.ini, or YourLoadedPlugin.ini. Note that, in that order, each INI will override the setting(s) of the previous INI file(s).

Examples[edit | edit source]

Int iNumPixels = Utility.GetIniInt("iSize H:Display") * Utility.GetIniInt("iSize W:Display") ; How many pixels?

See Also[edit | edit source]