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 Sound not playing
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#25
RE: Sound not playing

(01-13-2012, 05:48 AM)flamez3 Wrote: Just place the sound in the level editor next to the clock?
I've actually just thought this through a little more, and decided to play the chime at the beginning by doing what you suggested: I replaced my loop sound that's in the editor with the chime, and added a timer to play the loop after the chime finishes.

OnStart:
AddTimer("", 29.11f, "StartClock");

function:
void StartClock(string &in asTimer) {
    PlaySoundAtEntity("", "big_clock_loop.snt", "clock_grandfather_1", 0.0f, false);
}

So now its reversed. The sound that was working is no longer working, and the sound that wasn't working, is now working. Is where something wrong with my script function?

Maybe instead of using PlaySoundAtEntity, I can make a sound in the editor active through the script, and have it inactive in the editor?



Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-13-2012, 04:41 PM by eagledude4.)
01-13-2012, 04:15 PM
Find


Messages In This Thread
Sound not playing - by eagledude4 - 01-11-2012, 11:04 PM
RE: Sound not playing - by Elven - 01-11-2012, 11:08 PM
RE: Sound not playing - by flamez3 - 01-12-2012, 02:01 AM
RE: Sound not playing - by eagledude4 - 01-12-2012, 02:02 AM
RE: Sound not playing - by flamez3 - 01-12-2012, 02:11 AM
RE: Sound not playing - by eagledude4 - 01-12-2012, 02:12 AM
RE: Sound not playing - by flamez3 - 01-12-2012, 02:18 AM
RE: Sound not playing - by eagledude4 - 01-12-2012, 02:22 AM
RE: Sound not playing - by flamez3 - 01-12-2012, 02:26 AM
RE: Sound not playing - by eagledude4 - 01-12-2012, 02:32 AM
RE: Sound not playing - by flamez3 - 01-12-2012, 03:45 AM
RE: Sound not playing - by eagledude4 - 01-12-2012, 03:46 AM
RE: Sound not playing - by flamez3 - 01-12-2012, 03:52 AM
RE: Sound not playing - by eagledude4 - 01-12-2012, 06:17 AM
RE: Sound not playing - by flamez3 - 01-12-2012, 06:29 AM
RE: Sound not playing - by Your Computer - 01-12-2012, 07:24 AM
RE: Sound not playing - by rallelol - 01-12-2012, 09:24 AM
RE: Sound not playing - by rallelol - 01-12-2012, 05:06 PM
RE: Sound not playing - by eagledude4 - 01-13-2012, 03:38 AM
RE: Sound not playing - by flamez3 - 01-13-2012, 05:14 AM
RE: Sound not playing - by eagledude4 - 01-13-2012, 05:16 AM
RE: Sound not playing - by flamez3 - 01-13-2012, 05:17 AM
RE: Sound not playing - by eagledude4 - 01-13-2012, 05:36 AM
RE: Sound not playing - by flamez3 - 01-13-2012, 05:48 AM
RE: Sound not playing - by eagledude4 - 01-13-2012, 04:15 PM
RE: Sound not playing - by flamez3 - 01-13-2012, 04:46 PM
RE: Sound not playing - by eagledude4 - 01-13-2012, 04:48 PM
RE: Sound not playing - by flamez3 - 01-13-2012, 04:49 PM
RE: Sound not playing - by eagledude4 - 01-13-2012, 04:50 PM
RE: Sound not playing - by flamez3 - 01-13-2012, 04:53 PM
RE: Sound not playing - by eagledude4 - 01-15-2012, 05:59 AM
RE: Sound not playing - by eagledude4 - 01-16-2012, 11:23 PM
RE: Sound not playing - by Statyk - 01-17-2012, 12:01 AM
RE: Sound not playing - by eagledude4 - 01-17-2012, 12:03 AM
RE: Sound not playing - by Statyk - 01-17-2012, 02:24 AM
RE: Sound not playing - by eagledude4 - 01-17-2012, 02:42 AM
RE: Sound not playing - by flamez3 - 01-17-2012, 02:36 AM
RE: Sound not playing - by flamez3 - 01-17-2012, 02:55 AM
RE: Sound not playing - by eagledude4 - 01-17-2012, 02:56 AM



Users browsing this thread: 2 Guest(s)