Difference between revisions of "GetVersion - SKSE"

Jump to navigation Jump to search
1 byte added ,  19:04, 6 October 2012
m
→‎Examples: 'i' prefix. Oops
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>JustinOther
m (→‎Examples: 'i' prefix. Oops)
Line 21: Line 21:
== Examples ==
== Examples ==
* As used with SKSE version 1.5.11 rel 27 (SKSE major version: 1)
* As used with SKSE version 1.5.11 rel 27 (SKSE major version: 1)
<source lang="papyrus">Int vMajor = 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">Float fSKSE = SKSE.GetVersion() + SKSE.GetVersionMinor() * 0.01 + SKSE.GetVersionBeta() * 0.0001
<source lang="papyrus">Float fSKSE = SKSE.GetVersion() + SKSE.GetVersionMinor() * 0.01 + SKSE.GetVersionBeta() * 0.0001
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 1.0511"</source>
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 1.0511"</source>
== Notes ==
== Notes ==
None
None
Anonymous user

Navigation menu