Mod:Creation Kit/GetPluginVersion - F4SE

F4SE Member of: Mod:Creation Kit/F4SE Script

Gets the version of any currently installed F4SE plugin.

Syntax
int Function GetPluginVersion(string name) Global Native

Parameters

 * name: The name of an F4SE plugin to query.

Return Value
The F4SE plugin's version, or -1 if it isn't loaded.

Examples
string sPluginName = "MyPlugin" const int iPlugin = F4SE.GetPluginVersion(sPluginName) Debug.Notification("F4SE plugin '" + sPluginName + "' version: " + iPlugin)

If (F4SE.GetPluginVersion("MyPlugin") == -1) Debug.Messagebox("MyPlugin is missing, please reinstall the mod and try again!") EndIf