enderalse/source/scripts/_00e_mq11a_dalgalarvisibilitysc.psc

30 lines
783 B
Plaintext
Raw Normal View History

Scriptname _00E_MQ11a_DalGalarVisibilitySC extends ObjectReference
; This is a simple script to prevent Dal'Galar from becoming visible when the player leaves and re-enters his parent cell by means of meditation.
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF && !MQ11a_SC14_LeftTowerVision02.IsPlaying()
if MQ11a_LeftTower.GetValueInt() >= 8 && MQ11a_SC13_DalGalarREF.IsEnabled()
MQ11a_SC13_DalGalarREF.Disable()
Elseif MQ11a_LeftTower.GetValueInt() < 8
MQ11a_SC13_DalGalarREF.SetAlpha(0.0)
EndIf
EndIf
EndEvent
Quest Property MQ11a Auto
Scene Property MQ11a_SC14_LeftTowerVision02 Auto
Actor Property PlayerREF Auto
Actor Property MQ11a_SC13_DalGalarREF Auto
GlobalVariable Property MQ11a_LeftTower Auto