Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help sound wont work
Author Message
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #1
sound wont work

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?
03-31-2012 02:11 AM
Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,285
Joined: Apr 2011
Reputation: 57
Post: #2
RE: sound wont work

In void OnStart() use:

PlaySoundAtEntity("", "nameofsound", "Player", 0, true);

03-31-2012 02:22 AM
Find all posts by this user Quote this message in a reply
zombiehacker595 Offline
Member

Posts: 141
Joined: Mar 2012
Reputation: 3
Post: #3
RE: sound wont work

(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?
03-31-2012 02:46 AM
Find all posts by this user Quote this message in a reply
JetlinerX Offline
Senior Member

Posts: 599
Joined: Jun 2011
Reputation: 19
Post: #4
RE: sound wont work

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.

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

03-31-2012 02:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)