2021-10-12 02:10:35 +00:00
|
|
|
Scriptname _00E_SmokingPipeScript extends ObjectReference
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
_00E_PeaceweedControlScript Property PeaceweedControl Auto
|
|
|
|
Actor Property PlayerRef Auto
|
|
|
|
|
|
|
|
Event OnEquipped(Actor akActor)
|
|
|
|
If akActor == PlayerRef
|
2021-10-12 02:10:35 +00:00
|
|
|
; The check of base object is needed because this script somehow gets attached to the quest ref of _00E_FS_NQ07_Rezept (and to various containers)
|
|
|
|
Form baseObj = GetBaseObject()
|
|
|
|
If baseObj == None || (baseObj as MiscObject) != None
|
|
|
|
PeaceweedControl.StartSmoking()
|
|
|
|
EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
EndEvent
|