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
Custom Sound Effect Not Directional...
13irth Offline
Junior Member

Posts: 12
Threads: 3
Joined: Dec 2014
Reputation: 0
#1
Custom Sound Effect Not Directional...

Answer: Sound must be mono for it to work directionally. Thanks to Kurton and Mudbill for le helpz.

I made a custom sound effect and did this:
void OnEnter()
{
PlaySoundAtEntity("", "ticktock.snt", "clocksound", 0.0f, false);
}

My SNT file:
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="ticktock.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="0.5" MaxDistance="2" Random="0" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="True" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="5" />
</SOUNDENTITY>

I wanted it to sound like it was coming from the clock but I don't understand why it's not coming from the scriptarea and instead is just around the player when you're near the scriptarea...
(This post was last modified: 10-13-2016, 09:57 PM by 13irth.)
10-11-2016, 01:57 AM
Find


Messages In This Thread
Custom Sound Effect Not Directional... - by 13irth - 10-11-2016, 01:57 AM



Users browsing this thread: 1 Guest(s)