Spectral chest no SKSE update

This commit is contained in:
Eddoursul 2024-02-12 19:13:45 +01:00
parent 106de1e3dc
commit bb5e04f338
3 changed files with 12 additions and 2 deletions

BIN
Spectral chest update.esp Normal file

Binary file not shown.

Binary file not shown.

View File

@ -16,13 +16,21 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
Else Else
Float newCarryWeight = Self.GetMagnitude() + PlayerREF.GetActorValue("Alteration") if SKSE.GetVersion()
fMagnitude = GetMagnitude()
endif
Float newCarryWeight = fMagnitude + PlayerREF.GetActorValue("Alteration")
_00E_FS_SpectralChestActorREF.SetActorValue("CarryWeight", newCarryWeight) _00E_FS_SpectralChestActorREF.SetActorValue("CarryWeight", newCarryWeight)
_00E_FS_SpectralChestActorREF.SetPlayerTeammate(True, True) _00E_FS_SpectralChestActorREF.SetPlayerTeammate(True, True)
Utility.Wait(0.1) Utility.Wait(0.1)
_00E_FS_SpectralChestCapacity.Show(_00E_FS_SpectralChestActorREF.GetTotalItemWeight(), newCarryWeight)
if SKSE.GetVersion()
_00E_FS_SpectralChestCapacity.Show(_00E_FS_SpectralChestActorREF.GetTotalItemWeight(), newCarryWeight)
endif
_00E_FS_SpectralChestActorREF.OpenInventory() _00E_FS_SpectralChestActorREF.OpenInventory()
DRScTreasureOpen.Play(PlayerREF) DRScTreasureOpen.Play(PlayerREF)
@ -34,6 +42,8 @@ EndEvent
; PROPERTIES ; PROPERTIES
;===================================================================================== ;=====================================================================================
float Property fMagnitude = 30.0 Auto
Actor Property PlayerREF Auto Actor Property PlayerREF Auto
Actor Property _00E_FS_SpectralChestActorREF Auto Actor Property _00E_FS_SpectralChestActorREF Auto