Rapsis
Member
Posts: 69
Threads: 6
Joined: Oct 2012
Reputation:
0
|
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 |
|
PutraenusAlivius
Posting Freak
Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation:
119
|
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 |
|
ExpectedIdentifier
Member
Posts: 234
Threads: 10
Joined: Sep 2012
Reputation:
11
|
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:
|
|
08-10-2013, 12:18 PM |
|
Rapsis
Member
Posts: 69
Threads: 6
Joined: Oct 2012
Reputation:
0
|
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 |
|
Tomzzz
Junior Member
Posts: 23
Threads: 7
Joined: Aug 2013
Reputation:
1
|
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 |
|
Rapsis
Member
Posts: 69
Threads: 6
Joined: Oct 2012
Reputation:
0
|
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 |
|
|