Background for Fallout 4
Member of the F4SE script
intfunctionGetPluginVersion(stringname)NativeGlobal

Description

Wiki Description

Gets the version of any currently installed F4SE plugin.

Documentation Comment

get a plugins version number, -1 if the plugin is not loaded


Caveats

CK Wiki - Notes

None


Parameters

stringname

CK Wiki Description

The name of an F4SE plugin to query.


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

Auto-Generated Example

string myString__name

int returnedValue = F4SE.GetPluginVersion(myString__name)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.