Difference between revisions of "GetModIndex"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-'''.*'''\r\n +)) |
imported>Odessa (added examples + see also) |
||
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. | ||
|name = GetModIndex | |name = GetModIndex | ||
|returnType = int | |returnType = int | ||
Line 10: | 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]] | |||
*[[BuildRef]] | |||
[[Category:Functions_(FOSE)]] | [[Category:Functions_(FOSE)]] |
Revision as of 10:39, 16 July 2014
< [[::Category:Functions|Category:Functions]]
A function added by the Fallout Script Extender.
Description
Returns the index of the specified mod.
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