enderalse/source/scripts/_00e_smokingpipescript.psc

14 lines
502 B
Plaintext

Scriptname _00E_SmokingPipeScript extends ObjectReference
_00E_PeaceweedControlScript Property PeaceweedControl Auto
Actor Property PlayerRef Auto
Event OnEquipped(Actor akActor)
If akActor == PlayerRef
; 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
EndIf
EndEvent