4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
687 B

scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias
event OnInit()
; Utility.GetINIBool() is an SKSE function
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
event OnPlayerLoadGame()
; On game load, set INI value from KillMove
Utility.SetINIBool("bVATSDisable:VATS", ! KillMove.GetValue())
Quest bSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest
if bSkyUI
(GetOwningQuest() as _00E_EnderalMCM).OnGameReload()
endif
endEvent
GlobalVariable Property KillMove Auto