enderalse/source/scripts/_00e_fs_mq18c_disablerainsc.psc

29 lines
596 B
Plaintext

Scriptname _00E_FS_MQ18c_DisableRainSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer() && FS_MQ18c.IsRunning()
AudioCategoryAMB.SetVolume(0.65)
FS_MQ18c_RainParentREF.Enable()
endif
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer() && FS_MQ18c.IsRunning()
AudioCategoryAMB.SetVolume(1.0)
FS_MQ18c_RainParentREF.Disable()
endif
EndEvent
Quest Property FS_MQ18c Auto
ObjectReference Property FS_MQ18c_RainParentREF Auto
SoundCategory Property AudioCategoryAMB Auto