enderalse/source/scripts/_00E_SyncKillMoveAlias.psc

35 lines
662 B
Plaintext
Raw Normal View History

Scriptname _00E_SyncKillMoveAlias extends ReferenceAlias
GlobalVariable Property KillMove Auto
Event OnInit()
; it seems like that this ini setting does not do stuff by itself (or it is bugged)
; therefore we need to read it from the file and change the global with which the killmoves are conditioned
if SKSE.GetVersion() == 0
return
endif
If Utility.GetINIBool("bVATSDisable:VATS")
KillMove.SetValue(0.0)
Else
KillMove.SetValue(1.0)
EndIf
EndEvent
Event OnPlayerLoadGame()
if SKSE.GetVersion() == 0
return
endif
If Utility.GetINIBool("bVATSDisable:VATS")
KillMove.SetValue(0.0)
Else
KillMove.SetValue(1.0)
EndIf
EndEvent