The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Sound [SOLVED] - by Karai16 - 05-14-2011, 09:57 AM
RE: Sound - by Roenlond - 05-14-2011, 10:54 AM
RE: Sound [SOLVED] - by laser50 - 05-14-2011, 05:13 PM
RE: Sound [SOLVED] - by ferryadams10 - 05-15-2011, 08:45 AM



Users browsing this thread: 1 Guest(s)