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
Deciding between using 2 sounds with the same filename
RedMser Offline
Junior Member

Posts: 40
Threads: 12
Joined: Mar 2012
Reputation: 1
#1
Deciding between using 2 sounds with the same filename

There is 2 enabled.snt's in the game's sound folder, but I only want to play the one for the brute, but I have no idea how to tell the game to choose that one.
I am using PlaySoundAtEntity so there is no selection dialogue.

Any help??
11-26-2012, 04:59 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Deciding between using 2 sounds with the same filename

I think there was something like "PlaySoundAtEntity ("", "directory/filename"///////////And moar stuff I don't simply remain.

Hope I helped Wink

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-26-2012, 05:41 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: Deciding between using 2 sounds with the same filename

No, it's not possible. What you are calling is the .snt file, and sometimes there is only 1 .snt ifle for 5 .ogg files. This makes it play a random sound (i think)

So what you could do, is to copy the right .ogg file, and .snt file, place them in you custom story's sound folder.
Then edit the .snt file, so it works.
Now you can play the sound



I misunderstood...

Trying is the first step to success.
(This post was last modified: 11-26-2012, 09:10 PM by FlawlessHappiness.)
11-26-2012, 05:54 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#4
RE: Deciding between using 2 sounds with the same filename

You can use directories to distinguish them:

PlaySoundAtEntity("", "brute/enabled.snt", "BruteArea", 0, false);

That should play only the brute enabled sound.

11-26-2012, 09:01 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: Deciding between using 2 sounds with the same filename

(11-26-2012, 09:01 PM)Damascus Wrote: You can use directories to distinguish them:

PlaySoundAtEntity("", "brute/enabled.snt", "BruteArea", 0, false);

That should play only the brute enabled sound.
What I said but explained better.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-26-2012, 09:06 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Deciding between using 2 sounds with the same filename

Or sorry, i misunderstood...

Don't mind my reply..

Trying is the first step to success.
11-26-2012, 09:10 PM
Find




Users browsing this thread: 1 Guest(s)