GetVersion - F4SE

From the Fallout4 CreationKit Wiki
Revision as of 13:53, 21 January 2018 by imported>Qazaaq
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

F4SE Member of: F4SE Script
Requires F4SE version 0.2.0 or higher.

Returns the major version of F4SE which is the first number of the version scheme.

Syntax

int Function GetVersion() Global Native

Parameters

None

Return Value

The major (0.0.0.0) release index of F4SE.

Examples

int iMajor = F4SE.GetVersion()
Debug.Notification("F4SE major version: " + iMajor)
If (F4SE.GetVersion() < 1)
    Debug.Notification("Your F4SE is out of date!")
EndIf

Notes

  • The version scheme follows Major.Minor.Beta.Release (9.9.9.9)

See Also