Hi, I need it so that it plays the ancient protector attack sound multiple times really quickly as a 3d sound. The problem is, it is playing the sound every time the sound ends instead of "stacking" the sound effect. Can anyone help?
You can't stack the same sound. You need different sounds to be able to stack. So if you want the same sound effect to be stacked, then you need copies of that sound effect for however many would be playing at the same time.
For example:
If the length of the sound effect is 1 second, and you want it to play every 0.2 seconds, that means you need 5 sounds to be stacking at the same time
So you would need to import 4 copies of that sound and then play them each one after another, and then you can repeat with the original (after it would stop playing).
Although in this case, you might only need 4 total since by the time the 5th one would start, the first one would be ending....but that is something you could test.
One thing I need to check myself is if you can just create extra variables of the same sound, or if you actually need to have copies IMPORTED in...
EDIT: I just tested it out, and it turns out you DO NOT need to import additional copies, but only make copies of the sound as extra variables. That's good since it won't increase file size then
common.j provided some function to achieve this goal, then I write a custom function.
Now you can use the function at the bottom to achieve your goal (though this is 2D audio):
function JustAnotherPlaySound takes string soundName, real volumePercent, real pitch returns nothing
local sound soundHandle = CreateSound(soundName, false, false, true, 12700, 12700, "")
call SetSoundVolumeBJ(soundHandle, volumePercent)
call SetSoundPitch(soundHandle, pitch)
// Set Volume or Pitch after StartSound is invalid for current playing sound.
call StartSound(soundHandle)
call KillSoundWhenDone(soundHandle)
set bj_lastPlayedSound = soundHandle
endfunction
Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.