Sound Looping Script help

Post » Mon Jun 15, 2015 8:15 pm

I need some help trying to figure out how to get my script to stop playing a sound.

Ideally, the script says that when you equip this ring it will play a sound. The sound is meant to last for however long you have the ring on for. When you unequip the ring the sound will stop.

In my script I can get the sound to play when you put the ring on, however when you take the ring off the sound does not stop.

My script so far uses

Begin OnEquip Ring

PlaySound RingOn

End

Begin OnUnEquip

PlaySound RingOff

End

The sound itself lasts for 30ish seconds. If you wear the ring only 5 seconds the sound plays in its entirety and if you wear it for more than 30ish seconds the sound will stop playing even though you still are wearing it

Is there a way to make a sound play (and loop if it needs to) for the duration that I have an item equipped?

User avatar
Austin Suggs
 
Posts: 3358
Joined: Sun Oct 07, 2007 5:35 pm

Return to IV - Oblivion