GetNthModDependency - Game

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Game Script

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

Syntax[edit | edit source]

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

Parameter[edit | edit source]

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

Return Value[edit | edit source]

Returns the mod index of the Dependency

Examples[edit | edit source]

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[edit | edit source]