Difference between revisions of "GetModIndex"
Jump to navigation
Jump to search
imported>Geckbot (Automated import of articles) |
imported>DaWrecka m (Function returns 255 for non-loaded mods; added this info.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = FOSE1 | |origin = FOSE1 | ||
|summary = Returns the index of the specified mod | |summary = Returns the index of the specified mod. The NVSE version of this function returns a value of 255 if the mod is not loaded. | ||
|name = GetModIndex | |name = GetModIndex | ||
|returnType = int | |returnType = int | ||
Line 11: | Line 10: | ||
}} | }} | ||
}} | }} | ||
==Example== | |||
<pre> | |||
int iIndex | |||
set iIndex to GetModIndex "MyModFileName.esp" | |||
PrintC "My mod version X.Y is loaded at decimal '%g' or hex '%x2'" iIndex, iIndex | |||
</pre> | |||
==See Also== | |||
*[[IsModLoaded]] | |||
*[[GetNthModName]] (the reverse, to get the name from an index) | |||
*[[BuildRef]] | |||
[[Category:Functions_(FOSE)]] | [[Category:Functions_(FOSE)]] |
Latest revision as of 21:37, 19 February 2015
< [[::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
(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