2022-08-01 00:44:56 +00:00
|
|
|
scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias
|
|
|
|
|
2024-01-18 14:30:41 +00:00
|
|
|
event OnInit()
|
2024-02-04 22:35:54 +00:00
|
|
|
; 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
|
2024-01-18 14:30:41 +00:00
|
|
|
endevent
|
|
|
|
|
2022-08-01 00:44:56 +00:00
|
|
|
event OnPlayerLoadGame()
|
2024-01-17 21:50:37 +00:00
|
|
|
|
2024-02-04 22:35:54 +00:00
|
|
|
; On game load, set INI value from KillMove
|
|
|
|
Utility.SetINIBool("bVATSDisable:VATS", ! KillMove.GetValue())
|
2024-01-17 21:50:37 +00:00
|
|
|
|
2022-08-01 12:42:32 +00:00
|
|
|
Quest bSkyUI = Game.GetFormFromFile(0x802, "SkyUI_SE.esp") as Quest
|
|
|
|
if bSkyUI
|
|
|
|
(GetOwningQuest() as _00E_EnderalMCM).OnGameReload()
|
|
|
|
endif
|
2024-01-17 21:50:37 +00:00
|
|
|
|
2022-08-01 00:44:56 +00:00
|
|
|
endEvent
|
2024-01-17 21:50:37 +00:00
|
|
|
|
|
|
|
GlobalVariable Property KillMove Auto
|