Scriptname _00E_SmokePipe_Wall_SC extends ObjectReference Import Utility Import Debug ;===================================================================================== ; EVENTS ;===================================================================================== Event OnActivate(ObjectReference akActionRef) akSelfActor = akActionRef as Actor akSelfActor.TranslateToRef(Self, 100.0) If __Config_isSittingMarker _00E_QuestFunctions.PrintDebugMessage("Is sitting marker, add spell.") akSelfActor.AddSpell(_00E_Smoking_abSmokingSitting) Else akSelfActor.AddSpell(_00E_Smoking_abSmoking) EndIf EndEvent ;===================================================================================== ; FUNCTIONS ;===================================================================================== ;===================================================================================== ; PROPERTIES ;===================================================================================== bool Property __Config_isSittingMarker = False Auto {This has to be set to true in order for the animation to play from a cross-legged-pose rather than a standing one. Default = FALSE.} bool bIsSmoking Actor akSelfActor visualeffect property _00E_Smoking_PipeSmokingFlameEffect auto visualeffect property _00E_Smoking_PipeSmokingSmokeExhaleEffect auto Spell Property _00E_Smoking_abSmoking Auto Spell Property _00E_Smoking_abSmokingSitting Auto