eagledude4
Member
Posts: 144
Threads: 14
Joined: Dec 2011
Reputation:
0
|
RE: Sound not playing
(01-13-2012, 05:14 AM)flamez3 Wrote: You torrented it?
I did originally, but I purchased it. I downloaded it from the frictional games store.
Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-13-2012, 05:16 AM by eagledude4.)
|
|
01-13-2012, 05:16 AM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Sound not playing
Oh ok, could you please explain what you want done exactly? And why it is not working (Sorry, but I feel very lost in this thread xD)
(This post was last modified: 01-13-2012, 05:17 AM by flamez3.)
|
|
01-13-2012, 05:17 AM |
|
eagledude4
Member
Posts: 144
Threads: 14
Joined: Dec 2011
Reputation:
0
|
RE: Sound not playing
(01-13-2012, 05:17 AM)flamez3 Wrote: Oh ok, could you please explain what you want done exactly? And why it is not working (Sorry, but I feel very lost in this thread xD) I want the sound to play as soon as the level starts at the clock's location.
Its hard to see the truth when you've been blinded by lies.
|
|
01-13-2012, 05:36 AM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Sound not playing
Just place the sound in the level editor next to the clock?
|
|
01-13-2012, 05:48 AM |
|
eagledude4
Member
Posts: 144
Threads: 14
Joined: Dec 2011
Reputation:
0
|
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 |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|
eagledude4
Member
Posts: 144
Threads: 14
Joined: Dec 2011
Reputation:
0
|
RE: Sound not playing
I don't want to say you're wrong, but there's an "active" checkbox in the sound properties. Wouldn't leaving this box unchecked deactivate the sound? I don't want to go looking for other solutions without first finding the problem.
Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-13-2012, 04:49 PM by eagledude4.)
|
|
01-13-2012, 04:48 PM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Sound not playing
No, it doesn't work; I have tried this before in my earlier CS and it didn't work for me.
Maybe re-making the sound again?
(This post was last modified: 01-13-2012, 04:50 PM by flamez3.)
|
|
01-13-2012, 04:49 PM |
|
eagledude4
Member
Posts: 144
Threads: 14
Joined: Dec 2011
Reputation:
0
|
RE: Sound not playing
(01-13-2012, 04:49 PM)flamez3 Wrote: No, it doesn't work; I have tried this before in my earlier CS and it didn't work for me.
Maybe re-making the sound again? I know the sound works. It plays in the level editor. I just can't get it to play through my .hps.
Its hard to see the truth when you've been blinded by lies.
|
|
01-13-2012, 04:50 PM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Sound not playing
Where is the sound file located (sorry if I asked this before :3)
|
|
01-13-2012, 04:53 PM |
|
|