SteamVR
Scripted Item Test Range
Nolan the Fox 2019 年 6 月 28 日 上午 9:00
How would I make the rusty flashlight have a custom sound?
Hi,

I'm trying to make the Rusty Flashlight Tool have a custom sound for the button, I've found the Flashlight.Button sound, I don't know if that's the same sound for the flashlight001, but I couldn't find any other sounds called flashlight. I tried changing the vsnd_files line to
"wave" = "sounds/FlashlightFNaF4.ogg"
and it didn't work.
I had added a sounds folder, and had added the sound in it.
< >
正在显示第 1 - 5 条,共 5 条留言
Rectus  [开发者] 2019 年 6 月 28 日 上午 9:40 
That sounds right, except the entry needs the have the .vsnd extension. The tools will genearate the .vsnd file automatically from your sound file. I also don't think the tools support .ogg files, so you'll likely have to convert it into a .wav file first.

And yeah, the rusty flashlight uses the Flashlight.Button sound event.
最后由 Rectus 编辑于; 2019 年 6 月 28 日 上午 9:40
Nolan the Fox 2019 年 6 月 28 日 上午 10:33 
Ok, thanks!
Nolan the Fox 2019 年 6 月 28 日 上午 10:34 
I love this map BTW. : )
Nolan the Fox 2019 年 6 月 28 日 上午 10:53 
Hmmm.... still didn't work... I had converted it to a .wav format. And it didn't convert it to a .vsnd file format, either...
Rectus  [开发者] 2019 年 6 月 28 日 上午 10:58 
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50