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
Script Help Trigger Sounds not working
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#8
RE: Trigger Sounds not working

(06-04-2016, 10:58 PM)Xallikk Wrote: Still nothing although I noticed I hear a monster growl when I spawn in. It's not the same as the sound I chose, but it might be related?

.snt files usually contain several diffrent audio clips, thus they randomize which sound to play. The notice sounds in Amnesia usually look like this:

PHP Code: (Select All)
<SOUNDENTITY>
  <
SOUNDS>
      <
Main>
          <
Sound File="brute/notice01" />
          <
Sound File="brute/notice02" />
      </
Main>
  </
SOUNDS

You can see it by yourself by opening the .snt file in any text editor you're using. So in this case, using PlaySoundAtEntity will as I said randomize which sound to play among those 2.

If you want a particular sound to play, I reccomend using this function:
PHP Code: (Select All)
void PlayGuiSound(stringasSoundFilefloat afVolume);
Plays a soundnot using 3D.

asSoundFile the sound to play (extension is .snt)
afVolume the volume of the sound 

In GuiSound function, you just type in the name of the sound which you want to hear, for example "notice02.snt"
Make sure to have the .snt extension as well!
(This post was last modified: 06-04-2016, 11:06 PM by Slanderous.)
06-04-2016, 11:04 PM
Find


Messages In This Thread
Trigger Sounds not working - by Xallikk - 06-04-2016, 08:05 PM
RE: Trigger Sounds not working - by Slanderous - 06-04-2016, 09:31 PM
RE: Trigger Sounds not working - by Xallikk - 06-04-2016, 09:43 PM
RE: Trigger Sounds not working - by Slanderous - 06-04-2016, 10:44 PM
RE: Trigger Sounds not working - by Xallikk - 06-04-2016, 10:52 PM
RE: Trigger Sounds not working - by Slanderous - 06-04-2016, 10:55 PM
RE: Trigger Sounds not working - by Xallikk - 06-04-2016, 10:58 PM
RE: Trigger Sounds not working - by Slanderous - 06-04-2016, 11:04 PM
RE: Trigger Sounds not working - by Xallikk - 06-04-2016, 11:06 PM
RE: Trigger Sounds not working - by Slanderous - 06-04-2016, 11:08 PM
RE: Trigger Sounds not working - by Xallikk - 06-04-2016, 11:10 PM
RE: Trigger Sounds not working - by Slanderous - 06-05-2016, 12:55 AM
RE: Trigger Sounds not working - by Xallikk - 06-05-2016, 12:59 AM
RE: Trigger Sounds not working - by Daemian - 06-05-2016, 04:32 AM
RE: Trigger Sounds not working - by Xallikk - 06-05-2016, 04:36 AM
RE: Trigger Sounds not working - by Slanderous - 06-05-2016, 10:58 AM



Users browsing this thread: 1 Guest(s)