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
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#26
RE: Sound not playing

(01-13-2012, 04:15 PM)eagledude4 Wrote:
(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?
You can't make the sound deactive in the level editor. There is no other way other than PlaySoundAtEntity. Maybe you can save it as music and use PlayMusic?

01-13-2012, 04:46 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: 1 Guest(s)