Frictional Games Forum (read-only)

Full Version: sound wont work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
so i put in some sound to my level put it at 100 volume and the circle nearly takes up the whole map and it wont work do i need to add some kind of script to the noise or is it something else i need to do in the level editor?
In void OnStart() use:

PlaySoundAtEntity("", "nameofsound", "Player", 0, true);
(03-31-2012, 02:22 AM)flamez3 Wrote: [ -> ]In void OnStart() use:

PlaySoundAtEntity("", "nameofsound", "Player", 0, true);
ok that kinda works i can here the sound but it happens the second i open the level door and the circle i put of hearing is at the end of the hall with only max of 4 no where near the level door yet i can still hear it is there anything else i need to do?

Sounds in the level editor, wont effect sounds added by scripts. You need to add an area, with an AddEntityCollideCallback when you want to play the sound. Or, if you want it ambient, then place it in the editor, and add the circle where you want to start hearing it.

If its a scripted sound, you need an area

If its a mapped sound, you need to adjust your radius.