GetPluginVersion
From GECK
A function added by the New Vegas Script Extender.
Contents
Description
Returns the version number of the specified NVSE plugin, or -1 if the plugin is not loaded. Note that plugin names are set during registration and displayed in the file, nvse.log, it is not the file name.
Syntax
(float) GetPluginVersion PluginName:string
Example
if (GetPluginVersion "JIP NVSE Plugin") < 56 MessageBoxEx "You need to install version 56 of JIP LN NVSE Plugin" endif
Note
- The return value is usually an integer, i.e. it has no decimal point. For example, to check if the version of ShowOff NVSE is greater or equal to 1.80, one should check for that value * 100 to get rid of the decimal points, which would look like this:
if (GetPluginVersion "ShowOffNVSE Plugin") >= 180 ; do stuff endif
- However, there is a sole exception with JIP LN NVSE, which returns a float. For example, if checking for version 57.30 or greater, then 57.30 is the number that must be used in the script.
- Below is a list of known plugin names: