Difference between revisions of "GetVersion - F4SE"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(see also)
imported>Qazaaq
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''F4SE Member of:''' [[F4SE Script]]
'''F4SE Member of:''' [[F4SE Script]]
{{Template:Papyrus:RequiredF4SE|version=0.2.0}}


Returns the major version of F4SE which is the first number of the version scheme.
Returns the major version of F4SE which is the first number of the version scheme.
Line 12: Line 13:


== Return Value ==
== Return Value ==
The major version of F4SE.
The major ('''0'''.0.0.0) release index of F4SE.


== Examples ==
== Examples ==
Line 18: Line 19:
int iMajor = F4SE.GetVersion()
int iMajor = F4SE.GetVersion()
Debug.Notification("F4SE major version: " + iMajor)
Debug.Notification("F4SE major version: " + iMajor)
</source>
<source lang="papyrus">
If (F4SE.GetVersion() < 1)
    Debug.Notification("Your F4SE is out of date!")
EndIf
</source>
</source>


Line 35: Line 42:
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:F4SE]]
[[Category:F4SE]]
[[Category:Non-Delayed Native Functions]]

Latest revision as of 13:53, 21 January 2018

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[edit | edit source]

int Function GetVersion() Global Native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The major (0.0.0.0) release index of F4SE.

Examples[edit | edit source]

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

Notes[edit | edit source]

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

See Also[edit | edit source]