Difference between revisions of "GetVersion - SKSE"
Jump to navigation
Jump to search
imported>JustinOther m (→Examples: 'i' prefix. Oops) |
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 (SKSE major version: 1) | ||
<source lang="papyrus">Int iMajor = SKSE.GetVersion() | <source lang="papyrus">Int iMajor = SKSE.GetVersion() | ||
Debug.Notification("SKSE major version: " + iMajor)</source> | Debug.Notification("SKSE major version: " + iMajor)</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 == |
Revision as of 21:17, 5 July 2017
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 (SKSE major version: 1)
Int iMajor = SKSE.GetVersion()
Debug.Notification("SKSE major version: " + iMajor)
- 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
None