GetModIndex

From the Fallout3 GECK Wiki
Revision as of 21:37, 19 February 2015 by imported>DaWrecka (Function returns 255 for non-loaded mods; added this info.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Returns the index of the specified mod. The NVSE version of this function returns a value of 255 if the mod is not loaded.

Syntax

[help]
(int) GetModIndex modName:string

Example

int iIndex
set iIndex to GetModIndex "MyModFileName.esp"
PrintC "My mod version X.Y is loaded at decimal '%g' or hex '%x2'" iIndex, iIndex

See Also