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...
rallelol Offline
Member

Posts: 53
Threads: 11
Joined: Dec 2011
Reputation: 1
#1
Custom Sound...

Hello, i've created my own custom sound and put it in a "sounds"-folder for my customstory. It is put where it should be but i can't get it to work.
I have both the .oggfile and the .snt-text

Sntfile looks like this:

<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="fuck_off.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="0.9" MinDistance="1" MaxDistance="10" Random="" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

And the script looks like this:

void OnStart()
{
AddEntityCollideCallback("grunt3", "gruntsayarea1", "MonsterFunc4", true, 0);
}

void MonsterFunc4 (string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "fuck_off.snt", "grunt3", 0, false);
}

I've tried with "fuck_off.ogg" aswell.
The .ogg-file works fine. I don't know what i'm doing wrong, i'm getting angry at this...

Can someone help me please?


(This post was last modified: 01-12-2012, 05:07 PM by rallelol.)
01-10-2012, 08:00 PM
Find


Messages In This Thread
Custom Sound... - by rallelol - 01-10-2012, 08:00 PM
RE: Custom Sound... - by Elven - 01-10-2012, 08:19 PM
RE: Custom Sound... - by rallelol - 01-10-2012, 08:32 PM
RE: Custom Sound... - by Elven - 01-10-2012, 08:38 PM
RE: Custom Sound... - by rallelol - 01-10-2012, 08:41 PM
RE: Custom Sound... - by Elven - 01-10-2012, 08:47 PM
RE: Custom Sound... - by rallelol - 01-10-2012, 08:55 PM
RE: Custom Sound... - by Elven - 01-10-2012, 09:00 PM
RE: Custom Sound... - by rallelol - 01-10-2012, 09:02 PM
RE: Custom Sound... - by Elven - 01-10-2012, 09:18 PM
RE: Custom Sound... - by rallelol - 01-10-2012, 09:42 PM
RE: Custom Sound... - by Statyk - 01-10-2012, 09:52 PM
RE: Custom Sound... - by Elven - 01-10-2012, 09:56 PM
RE: Custom Sound... - by rallelol - 01-10-2012, 09:58 PM
RE: Custom Sound... - by Elven - 01-10-2012, 10:01 PM



Users browsing this thread: 1 Guest(s)