Set KillMove value from bVATSDisable:VATS on new game

This commit is contained in:
Eddoursul 2024-01-18 15:30:41 +01:00
parent f0fef8fc27
commit c6d5fff031
2 changed files with 6 additions and 0 deletions

View File

@ -1,7 +1,13 @@
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