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
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


Messages In This Thread
My sound keeps replaying itself once it is activated? - by flamez3 - 10-22-2011, 02:40 AM



Users browsing this thread: 1 Guest(s)