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 My sound keeps replaying itself once it is activated?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#1
My sound keeps replaying itself once it is activated?

When ever I activate the sound (through callback) it always plays back. I've gone in the snt file and disabled the loop by setting it to "false". I've even tried to stop the sound alltogether using the script "StopSound(string& asSoundName, float afFadeTime);"


But it still keeps on playing... Here is my snt regarding the sounds.


Sound 1:


Quote:<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="I_told_you.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="10" MaxDistance="30" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="false" Use3D="False" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>[/code]




Sound 2:



Quote:<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="fault.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="10" MaxDistance="30" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="false" Use3D="False" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

10-22-2011, 02:40 AM
Find
ggstarfoxxie Offline
Junior Member

Posts: 36
Threads: 9
Joined: Aug 2011
Reputation: 2
#2
RE: My sound keeps replaying itself once it is activated?

You should try to capitalize the false. I know I've had plenty of issues where stuff wouldn't work not just in .snt's, but in general scripting as well.

10-22-2011, 04:33 AM
Find
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#3
RE: My sound keeps replaying itself once it is activated?

Yeah, the "false" should be "False". That's how sensitive scripting is -__-
(This post was last modified: 10-22-2011, 06:40 AM by SonOfLiberty796.)
10-22-2011, 06:40 AM
Find




Users browsing this thread: 1 Guest(s)