Difference between revisions of "GetVersionBeta - SKSE"
Jump to navigation
Jump to search
imported>JohnB (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' SKSE Script Returns the beta version of SKSE. (This function requires SKSE) == Synta...") |
imported>JustinOther m (Linked GetVersionRelease/Prefixed Int vars with 'i'/Added second example with complete version number as a float/Added Minimum SKSE version) |
||
Line 5: | Line 5: | ||
Returns the beta version of SKSE. (This function requires SKSE) | Returns the beta version of SKSE. (This function requires SKSE) | ||
{{SKSEFunction|1.05.02}} | |||
== Syntax == | == Syntax == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Int Function GetVersionBeta() Global Native | |||
</source> | </source> | ||
Line 18: | Line 20: | ||
== Examples == | == Examples == | ||
*As used with SKSE version 1.5.11 rel 27 (SKSE beta version: 11) | |||
<source lang="papyrus">Int iBeta = SKSE.GetVersion() | |||
Debug.Notification("SKSE beta version: " + iBeta)</source> | |||
Debug.Notification("SKSE beta version: " + | *Obtain complete version number as a float. | ||
; SKSE | <source lang="papyrus">Float fSKSE = SKSE.GetVersion() + SKSE.GetVersionMinor() * 0.01 + SKSE.GetVersionBeta() * 0.0001 | ||
</source> | Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 1.0511"</source> | ||
== Notes == | == Notes == | ||
None | None | ||
Line 32: | Line 33: | ||
*[[GetVersion - SKSE]] | *[[GetVersion - SKSE]] | ||
*[[GetVersionMinor - SKSE]] | *[[GetVersionMinor - SKSE]] | ||
*[[GetVersionRelease - SKSE]] |
Revision as of 18:52, 6 October 2012
SKSE Member of: SKSE Script
Returns the beta version of SKSE. (This function requires SKSE)
Minimum required SKSE Version: 1.05.02
Syntax
Int Function GetVersionBeta() Global Native
Parameters
None
Return Value
The beta version of SKSE (third number).
Examples
- As used with SKSE version 1.5.11 rel 27 (SKSE beta version: 11)
Int iBeta = SKSE.GetVersion()
Debug.Notification("SKSE beta version: " + iBeta)
- 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