Grymlax
Probably not around
- Reaction score
- 138
Do I need to destroy sounds?
I decided to enhance some of my spells with 3d sounds. I started by setting a variable as a sound. After I was done using it I destroyed it with the gui function Sound - Destroy Sound. This is where my problem starts becouse after it was destroyed I could not set it to the variable and use it again, so the sound only played the first time the spell was cast.
So my question is simply: Do i need to destroy 3d sounds after I've played them?
If the answer to the first question is yes then the follow up question reads: How would I destroy it to make it leak free?
I did a small check at the Tutorial Repository but the closest i got was emjlr3's Memory Leak / Custom Script Guide and it didn't say anything about sounds.
I decided to enhance some of my spells with 3d sounds. I started by setting a variable as a sound. After I was done using it I destroyed it with the gui function Sound - Destroy Sound. This is where my problem starts becouse after it was destroyed I could not set it to the variable and use it again, so the sound only played the first time the spell was cast.
So my question is simply: Do i need to destroy 3d sounds after I've played them?
If the answer to the first question is yes then the follow up question reads: How would I destroy it to make it leak free?
I did a small check at the Tutorial Repository but the closest i got was emjlr3's Memory Leak / Custom Script Guide and it didn't say anything about sounds.