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

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
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:
          <Sound File="Final_Destination" />
  <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" />

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
Roenlond Offline
Senior Member

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

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

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

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

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
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

Users browsing this thread: 1 Guest(s)