GetVersion - SKSE

Revision as of 19:04, 6 October 2012 by imported>JustinOther (→‎Examples: 'i' prefix. Oops)

SKSE Member of: SKSE Script

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

Minimum required SKSE Version: 1.05.02

Syntax

Int Function GetVersion() Global Native

Parameters

None

Return Value

The major version of SKSE (first number).

Examples

  • As used with SKSE version 1.5.11 rel 27 (SKSE major version: 1)
Int iMajor = SKSE.GetVersion()
Debug.Notification("SKSE major version: " + iMajor)
  • 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