Difference between revisions of "GetVersionMinor - SKSE"

295 bytes added ,  18:52, 6 October 2012
m
Linked GetVersionRelease/Prefixed Int vars with 'i'/Added second example with complete version number as a float/Added Minimum SKSE version
imported>JohnB
(Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' SKSE Script Returns the minor version of SKSE. (This function requires SKSE) == Synt...")
 
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 minor version of SKSE.  (This function requires SKSE)
Returns the minor version of SKSE.  (This function requires SKSE)
{{SKSEFunction|1.05.02}}


== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
int Function GetVersionMinor() global native
Int Function GetVersionMinor() Global Native
</source>
</source>


Line 18: Line 20:


== Examples ==
== Examples ==
<source lang="papyrus">
*As used with SKSE version 1.5.11 rel 27 (SKSE minor version: 5)
; as used with SKSE version 1.5.11 rel 27
<source lang="papyrus">Int iMinor = SKSE.GetVersion()
int vMinor = SKSE.GetVersion()
Debug.Notification("SKSE minor version: " + iMinor)</source>
Debug.Notification("SKSE minor version: " + vMinor)
*Obtain complete version number as a float.
; SKSE minor version: 5
<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 ==
Line 32: Line 34:
*[[GetVersion - SKSE]]
*[[GetVersion - SKSE]]
*[[GetVersionBeta - SKSE]]
*[[GetVersionBeta - SKSE]]
*[[GetVersionRelease - SKSE]]
Anonymous user