2021-10-05 22:15:58 +00:00
|
|
|
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
|
2024-01-09 22:00:18 +00:00
|
|
|
_00E_Debug.PrintMessage("Is sitting marker, add spell.")
|
2021-10-05 22:15:58 +00:00
|
|
|
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
|