GetVersionMinor - SKSE

From the CreationKit Wiki
Revision as of 18:52, 6 October 2012 by imported>JustinOther (Linked GetVersionRelease/Prefixed Int vars with 'i'/Added second example with complete version number as a float/Added Minimum SKSE version)
Jump to navigation Jump to search

SKSE Member of: SKSE Script

Returns the minor version of SKSE. (This function requires SKSE)

Minimum required SKSE Version: 1.05.02

Syntax

Int Function GetVersionMinor() Global Native

Parameters

None

Return Value

The minor version of SKSE (second number).

Examples

  • As used with SKSE version 1.5.11 rel 27 (SKSE minor version: 5)
Int iMinor = SKSE.GetVersion()
Debug.Notification("SKSE minor version: " + iMinor)
  • Obtain complete version number as a float.
Float fSKSE = SKSE.GetVersion() + SKSE.GetVersionMinor() * 0.01 + SKSE.GetVersionBeta() * 0.0001
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 1.0511"

Notes

None

See Also