Difference between revisions of "GetVersionBeta - SKSE"
Jump to navigation
Jump to search
imported>JustinOther m (Linked GetVersionRelease/Prefixed Int vars with 'i'/Added second example with complete version number as a float/Added Minimum SKSE version) |
imported>XJDHDR (→Examples: Current example throws an "Input string was not in a correct format." error when compiling. This new example works fine.) |
||
Line 20: | Line 20: | ||
== Examples == | == Examples == | ||
*As used with SKSE version 1. | * As used with SKSE version 1.7.3 rel 48 (SKSE beta version: 3) | ||
<source lang="papyrus">Int iBeta = SKSE.GetVersion() | <source lang="papyrus">Int iBeta = SKSE.GetVersion() | ||
Debug.Notification("SKSE beta version: " + iBeta)</source> | Debug.Notification("SKSE beta version: " + iBeta)</source> | ||
*Obtain complete version number as a float. | *Obtain complete version number as a float. | ||
<source lang="papyrus"> | <source lang="papyrus">Int fSKSE = SKSE.GetVersion() * 10000 + SKSE.GetVersionMinor() * 100 + SKSE.GetVersionBeta() | ||
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: | Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 10703"</source> | ||
== Notes == | == Notes == | ||
None | None |
Latest revision as of 21:23, 5 July 2017
SKSE Member of: SKSE Script
Returns the beta version of SKSE. (This function requires SKSE)
Minimum required SKSE Version: 1.05.02
Syntax[edit | edit source]
Int Function GetVersionBeta() Global Native
Parameters[edit | edit source]
None
Return Value[edit | edit source]
The beta version of SKSE (third number).
Examples[edit | edit source]
- As used with SKSE version 1.7.3 rel 48 (SKSE beta version: 3)
Int iBeta = SKSE.GetVersion()
Debug.Notification("SKSE beta version: " + iBeta)
- Obtain complete version number as a float.
Int fSKSE = SKSE.GetVersion() * 10000 + SKSE.GetVersionMinor() * 100 + SKSE.GetVersionBeta()
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 10703"
Notes[edit | edit source]
None