Studio: How to add sound to an entity.?

Hello everyone,
I’m trying to play a sound when collecting an object.

While checking the documentation, I found this:
world.audio.addSound(eid, audio)


However, when I try to use it in the code editor, it seems like the method isn’t available:

image

Does anyone know why this is happening or how to fix it? Any help would be appreciated!

Check out this thread: