Do not trigger events on unloaded smoking actors
This commit is contained in:
parent
2bee09db2d
commit
615f65c59c
Binary file not shown.
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user