10-11-2016, 01:57 AM
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...
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...