GetVersion - SKSE

From Creation Kit
Revision as of 2017-07-05T21:22:57 by XJDHDR (Talk | contribs) (Examples: Current example throws an "Input string was not in a correct format." error when compiling. This new example works fine.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.7.3 rel 48 (SKSE major version: 1)
Int iMajor = SKSE.GetVersion()
Debug.Notification("SKSE major version: " + iMajor)
  • Obtain complete version number as an integer.
Int fSKSE = SKSE.GetVersion() * 10000 + SKSE.GetVersionMinor() * 100 + SKSE.GetVersionBeta()
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 10703"

Notes

None

See Also