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
Sound doesn't fade (Solved)
Cataclysm Offline
Junior Member

Posts: 25
Threads: 3
Joined: Jan 2011
Reputation: 0
#1
Sound doesn't fade (Solved)

Alright so I'm working on a test map where im just fooling around figuring out the scripting and everything. I'm coming a long nicely thanks to lots of help, but I've run in to a problem. At the void OnStart() at the beginning one of my callbacks is

AddEntityCollideCallback("Player", "ScriptArea_1", "PlayCreepySound", true, 1);

now the script for that call back in the void OnEnter() is

void PlayCreepySound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scare_steps_big.snt", "ScriptArea_1", 0, false);
StartScreenShake(0.3, 4, 2, 2);
PlaySoundAtEntity("", "general_rock_rumble.snt", "ScriptArea_1", 0, false);
}

Now when I enter the script area the sounds play the screen shakes and everything works, but the rock rumble sound never stops playing.
Anyone know whats up???

Thanks in advance.

If guns don't kill people, People kill people. Then toasters don't toast toast, Toast toast toast

[Image: 2b5wu9.png]

(This post was last modified: 01-09-2011, 02:02 AM by Cataclysm.)
01-08-2011, 09:33 PM
Find


Messages In This Thread
Sound doesn't fade (Solved) - by Cataclysm - 01-08-2011, 09:33 PM
RE: Sound doesn't fade... - by Frontcannon - 01-08-2011, 09:34 PM
RE: Sound doesn't fade... - by Cataclysm - 01-09-2011, 12:24 AM
RE: Sound doesn't fade... - by Frontcannon - 01-09-2011, 12:48 AM
RE: Sound doesn't fade... - by Cataclysm - 01-09-2011, 01:34 AM



Users browsing this thread: 1 Guest(s)