2021-10-12 04:10:35 +02:00
|
|
|
Scriptname _00E_SmokingPipeScript extends ObjectReference
|
2021-10-06 00:15:58 +02:00
|
|
|
|
|
|
|
_00E_PeaceweedControlScript Property PeaceweedControl Auto
|
|
|
|
Actor Property PlayerRef Auto
|
|
|
|
|
|
|
|
Event OnEquipped(Actor akActor)
|
|
|
|
If akActor == PlayerRef
|
2021-10-12 04:10:35 +02: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-06 00:15:58 +02:00
|
|
|
EndIf
|
|
|
|
EndEvent
|