Hey there,
i am currently in need to emit a sound from a given origin, similar to how gunfire works (You turn away from it and it still sounds like its coming from the origin, and not .. well .. everywhere).
I tried EmitAmbientSound with a given origin, the sound does get louder the closer i get to the origin (And originate from it according to snd_visualize) but changing my rotation to the origin still results in it playing from "everywhere" instead of having a "stereo" effect like gunfire. EmitSoundToAll didnt bring much of a change either.
Am i missing something? Do i really need a speaker entity?
PHP Code:
EmitAmbientSound("weapons/m4a1/m4a1_02.wav", view_as<float>({3960.1, -2585.7, -15241.9}));
Thanks!