GetModIndex
From GECK
A function added by the Fallout Script Extender.
Contents
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
(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
- IsModLoaded
- GetNthModName (the reverse, to get the name from an index)
- BuildRef