GetNthModDependency - Game

From Creation Kit
Jump to: navigation, search

SKSE Member of: Game Script

Returns the mod index of the specified Dependency. (This function requires SKSE)

Syntax

int Function GetNthModDependency(int modIndex, int n) native global

Parameter

  • modIndex = index of the mod.
  • n = The index of the dependency.

Return Value

Returns the mod index of the Dependency

Examples

Function Dependency()
	DependencyNumber = Game.GetNthModDependency(1, 0); ModIndex = 1, DependencyIndex = 0
	If(Game.GetModName(0) == "Skyrim.esm")
		Debug.Trace("Mod at Index 1 has Skyrim.esm as one of it's dependencies.")
	Else
		Debug.Trace("Skyrim.esm is not a Dependency of Mod at Index 1")
EndFunction

See Also