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
Sound [SOLVED]
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#1
Question  Sound [SOLVED]

Hey guys! Another question... yeah I know I suck Sad

Anywho, I'm trying to make my custom story play a sound at the beginning of the map. It's a voice acting thing. So I tried to do it the same way someone else did it, (I have some custom maps and sometimes peek how other people do stuff)
But it won't work! Dodgy
Here's the thing:
in my custom story (Her Games) folder I have a sound folder. the path's like this: custom_stories\Her Games\sound\her games in that folder I have a Final_Destination.ogg and a Final_Destination.snt
This is the code:
void OnStart()
{
    PlaySoundAtEntity("", "Final_Destination.snt", "player", 0, true);
}
I've even tried to make it play with a AddEntityPlayerCollideCallBack and put a script area at the start position... but the sound just won't play. Can somebody help me? Huh I'm lost at what to do...
In case it helps, this is the .snt file:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="Final_Destination" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="0.8" MinDistance="1" MaxDistance="12" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.8" Priority="0" />
</SOUNDENTITY>

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
(This post was last modified: 05-14-2011, 11:22 AM by Karai16.)
05-14-2011, 09:57 AM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#2
RE: Sound

"player" might need to be "Player". Otherwise, try using PlayGuiSound to see if that helps.
05-14-2011, 10:54 AM
Find
laser50 Offline
Member

Posts: 242
Threads: 22
Joined: Apr 2011
Reputation: 0
#3
RE: Sound [SOLVED]

PS: Telling that you suck will never help you, believe in yourself! Big Grin
05-14-2011, 05:13 PM
Find
ferryadams10 Offline
Senior Member

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
#4
RE: Sound [SOLVED]

You should write player as "Player" ---> Pp <--- It makes the difference

Got a nice sofa
Please come and have a seat for a while

05-15-2011, 08:45 AM
Find




Users browsing this thread: 2 Guest(s)