Difference between revisions of "GetScriptVersionRelease - F4SE"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(Added F4SE member)
 
imported>Qazaaq
(added required f4se version)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:F4SE]]
'''F4SE Member of:''' [[F4SE Script]]
'''F4SE Member of:''' [[F4SE Script]]
{{Template:Papyrus:RequiredF4SE|version=0.2.0}}


Returns the release index of this script file. This can be used to detect a script/runtime version mismatch.
Gets the current script version of F4SE's scripts. This can be used to detect a script/runtime version mismatch.


== Syntax ==
== Syntax ==
Line 15: Line 13:


== Return Value ==
== Return Value ==
The release index of this script file.
The current script version of F4SE's scripts.


== Examples ==
== Examples ==
Line 21: Line 19:
int iScript = F4SE.GetScriptVersionRelease()
int iScript = F4SE.GetScriptVersionRelease()
Debug.Notification("F4SE script version: " + iScript)
Debug.Notification("F4SE script version: " + iScript)
</source>
<source lang="papyrus">
If (F4SE.GetScriptVersionRelease() > 6)
    Debug.Notification("We support your installation of F4SE!")
EndIf
</source>
</source>


== Notes ==
== Notes ==
None


== See Also ==
== See Also ==
Line 32: Line 37:
*[[GetVersionRelease - F4SE]]
*[[GetVersionRelease - F4SE]]
*[[GetPluginVersion - F4SE]]
*[[GetPluginVersion - F4SE]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:F4SE]]

Latest revision as of 14:07, 21 January 2018

F4SE Member of: F4SE Script
Requires F4SE version 0.2.0 or higher.

Gets the current script version of F4SE's scripts. This can be used to detect a script/runtime version mismatch.

Syntax[edit | edit source]

int Function GetScriptVersionRelease() Global

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The current script version of F4SE's scripts.

Examples[edit | edit source]

int iScript = F4SE.GetScriptVersionRelease()
Debug.Notification("F4SE script version: " + iScript)
If (F4SE.GetScriptVersionRelease() > 6)
    Debug.Notification("We support your installation of F4SE!")
EndIf

Notes[edit | edit source]

None

See Also[edit | edit source]