ValidateModIndex
Revision as of 16:30, 2 April 2015 by imported>Jazzisparis
< [[::Category:Functions|Category:Functions]]
A function added by the JIP NVSE Plugin.
Description
If the mod placed at the specified index at the time the current game was saved, is no longer at the same index, this function will return the current, corrected index, or -1 if the mod is no longer loaded.
Syntax
(validatedIndex:int) ValidateModIndex modIndex:int
Example
Suppose ExampleMod.esp was at index 6 at the time the current save was made, but has since been moved, and its index is now 9. Loading the save and calling: ValidateModIndex 6 with 6 being ExampleMod.esp last index, will return 9 - its current index.