enderalse/source/scripts/_00e_ski_playerloadgamealias.psc

25 lines
627 B
Plaintext
Raw Normal View History

scriptname _00E_SKI_PlayerLoadGameAlias extends ReferenceAlias
event OnInit()
; On new game, set KillMove value from INI
KillMove.SetValue((! Utility.GetINIBool("bVATSDisable:VATS")) as float)
endevent
event OnPlayerLoadGame()
; On game load, set INI value from KillMove, managed in the MCM
if KillMove.GetValue()
Utility.SetINIBool("bVATSDisable:VATS", false)
else
Utility.SetINIBool("bVATSDisable:VATS", true)
endif
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
endEvent
GlobalVariable Property KillMove Auto