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
Play the same custom sound at multiple entities?
Rapsis Offline
Member

Posts: 69
Threads: 6
Joined: Oct 2012
Reputation: 0
#1
Play the same custom sound at multiple entities?

Hey people, I'm using:

PlaySoundAtEntity("", "raining.snt", "rainsound", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_1", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_2", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_3", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_4", 1, true);

But it only plays the sound at the first entity that way. I'm horrible at variables. How can I make them all play at the same time?
(This post was last modified: 08-10-2013, 11:51 AM by Rapsis.)
08-10-2013, 11:51 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Play the same custom sound at multiple entities?

Then call them from different functions.

"Veni, vidi, vici."
"I came, I saw, I conquered."
08-10-2013, 12:13 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#3
RE: Play the same custom sound at multiple entities?

(08-10-2013, 11:51 AM)Rapsis Wrote: Hey people, I'm using:

PlaySoundAtEntity("", "raining.snt", "rainsound", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_1", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_2", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_3", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_4", 1, true);

But it only plays the sound at the first entity that way. I'm horrible at variables. How can I make them all play at the same time?

It must be a problem with the name of the entity that you are trying to play the sound at. Also, what entities are you trying to play the sounds at exactly?

Closure ModDB page:

[Image: 16LO8Sx]
(This post was last modified: 08-10-2013, 12:20 PM by ExpectedIdentifier.)
08-10-2013, 12:18 PM
Find
Rapsis Offline
Member

Posts: 69
Threads: 6
Joined: Oct 2012
Reputation: 0
#4
RE: Play the same custom sound at multiple entities?

(08-10-2013, 12:13 PM)JustAnotherPlayer Wrote: Then call them from different functions.

I have no clue what you're saying.
08-10-2013, 12:19 PM
Find
Tomzzz Offline
Junior Member

Posts: 23
Threads: 7
Joined: Aug 2013
Reputation: 1
#5
RE: Play the same custom sound at multiple entities?

(08-10-2013, 12:19 PM)Rapsis Wrote:
(08-10-2013, 12:13 PM)JustAnotherPlayer Wrote: Then call them from different functions.

I have no clue what you're saying.

i think he mean that you should use for each sound new function
(This post was last modified: 08-10-2013, 12:37 PM by Tomzzz.)
08-10-2013, 12:36 PM
Website Find
Rapsis Offline
Member

Posts: 69
Threads: 6
Joined: Oct 2012
Reputation: 0
#6
RE: Play the same custom sound at multiple entities?

(08-10-2013, 12:18 PM)sonataarctica Wrote:
(08-10-2013, 11:51 AM)Rapsis Wrote: Hey people, I'm using:

PlaySoundAtEntity("", "raining.snt", "rainsound", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_1", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_2", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_3", 1, true);    

PlaySoundAtEntity("", "raining.snt", "rainsound_4", 1, true);

But it only plays the sound at the first entity that way. I'm horrible at variables. How can I make them all play at the same time?

It must be a problem with the name of the entity that you are trying to play the sound at. Also, what entities are you trying to play the sounds at exactly?

I'm using scriptareas. Names are all correct.

Nevermind, I forgot to remove the .cache file.
(This post was last modified: 08-10-2013, 12:44 PM by Rapsis.)
08-10-2013, 12:38 PM
Find




Users browsing this thread: 2 Guest(s)