Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


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

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: sound wont work

In void OnStart() use:

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

03-31-2012, 02:22 AM
Find
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#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
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#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
Website Find




Users browsing this thread: 1 Guest(s)