Updated KillMove sync
This commit is contained in:
parent
bc71ba52b0
commit
300b559ba3
Binary file not shown.
@ -1,18 +1,19 @@
|
|||||||
scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias
|
scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias
|
||||||
|
|
||||||
event OnInit()
|
event OnInit()
|
||||||
; On new game, set KillMove value from INI
|
; Utility.GetINIBool() is an SKSE function
|
||||||
KillMove.SetValue((! Utility.GetINIBool("bVATSDisable:VATS")) as float)
|
if SKSE.GetVersion() > 0
|
||||||
|
; On new game, set KillMove value from INI
|
||||||
|
KillMove.SetValue((! Utility.GetINIBool("bVATSDisable:VATS")) as float)
|
||||||
|
else
|
||||||
|
Utility.SetINIBool("bVATSDisable:VATS", ! KillMove.GetValue())
|
||||||
|
endif
|
||||||
endevent
|
endevent
|
||||||
|
|
||||||
event OnPlayerLoadGame()
|
event OnPlayerLoadGame()
|
||||||
|
|
||||||
; On game load, set INI value from KillMove, managed in the MCM
|
; On game load, set INI value from KillMove
|
||||||
if KillMove.GetValue()
|
Utility.SetINIBool("bVATSDisable:VATS", ! KillMove.GetValue())
|
||||||
Utility.SetINIBool("bVATSDisable:VATS", false)
|
|
||||||
else
|
|
||||||
Utility.SetINIBool("bVATSDisable:VATS", true)
|
|
||||||
endif
|
|
||||||
|
|
||||||
Quest bSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest
|
Quest bSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest
|
||||||
if bSkyUI
|
if bSkyUI
|
||||||
|
Loading…
Reference in New Issue
Block a user