#How can I play a sound in a level ?

1 messages · Page 1 of 1 (latest)

finite gust
#

I'm currently trying to get my code to play the strawberry collect sound but i can't seem to find any method to do so when i look up the game in ILSpy
Does anyone know how to do so ?

#

SoundEmitter sounds like something i'd be looking for, but i have no idea where to get an instance of this one

#

would something like level.Tracker.GetEntity<SoundEmitter>(); work ?

limpid bobcat
#

Audio.Play?

finite gust
#

that should work, thanks a lot !

#

is there any way to find the path of the different sounds in the vanilla game ?

cursive umbra
limpid bobcat
#

There's also a class with constants in it, SFX I think?

finite gust
#

I see, thanks a lot !

#

i feel like all those useful wiki pages are not in the main summary lmao

cursive umbra
#

yeeeah we should probably clean up the sidebar a bit

#

there's several wiki pages you can kinda just find if you know they exist

finite gust
#

there's also the search bar but i always forget about that one lol