Do not trigger events on unloaded smoking actors

This commit is contained in:
Eddoursul 2024-01-22 22:44:32 +01:00
parent 2bee09db2d
commit 615f65c59c
2 changed files with 12 additions and 0 deletions

View File

@ -50,6 +50,18 @@ Event OnPackageChange(Package akOldPackage)
Target.RemoveSpell(_00E_Smoking_CrossLeggedMarkerSP)
EndEvent
Event OnCellAttach()
If ! bIsFinished
RegisterForSingleUpdate(1.0)
RegisterForSleep()
endif
endEvent
Event OnCellDetach()
UnregisterForUpdate()
UnregisterForSleep()
endEvent
Event OnSleepStart(float afSleepStartTime, float afDesiredSleepEndTime)
; Debug.Trace(self + ": OnSleepStart, " + Target)