Author |
Message |
MrC121989
Joined: Wed Feb 10, 2010 12:41 pm Posts: 182 Location: OMG where am i ?
|
Sound Question
Hello, i need your help again Is there a way to add sound to an object or an actor when he is placed (for example when you place objects in skirmish before battle)? And the ability to add multiple sounds and make them play after previous ends. Just to prevent people saying that its useless or anything like that, i'll expain what i'm trying to do, i want so that when i place a brain for example my faction theme strarts to play, this idea can olso be used for some factions propagand, you name it.
|
Mon May 03, 2010 12:08 pm |
|
|
CCnewplayer
Joined: Wed Feb 24, 2010 11:00 pm Posts: 255 Location: Unknow
|
Re: Sound Question
I dont know if this is possible , but , it's possible add wavs to AEmitters as contentfiles.
|
Mon May 03, 2010 6:39 pm |
|
|
lafe
Joined: Sat Mar 28, 2009 2:33 pm Posts: 718
|
Re: Sound Question
aemitter with the right sound and a simple lua script can get the job done.
|
Mon May 03, 2010 8:41 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Sound Question
Pseudocode: function Create(self) create AEmitter sound, instance of "Noisemaker" set sound's position to that of your brain add sound to the map's list of MOs end
|
Mon May 03, 2010 8:45 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Sound Question
You don't even need Lua. Just attach the AEmitter to the desired object.
|
Mon May 03, 2010 8:54 pm |
|
|
CCnewplayer
Joined: Wed Feb 24, 2010 11:00 pm Posts: 255 Location: Unknow
|
Re: Sound Question
Yes all with ini:
-make one AEmitter with the sound and loopsetting. -attach it to the actor , liking the molotov's fire. -change the loopsetting to 1.
|
Mon May 03, 2010 9:12 pm |
|
|
lafe
Joined: Sat Mar 28, 2009 2:33 pm Posts: 718
|
Re: Sound Question
CaveCricket48 wrote: You don't even need Lua. Just attach the AEmitter to the desired object. i lol at cave cricket and his inability to fit in with the times refusing to learn lua, and instead, making tuns of tuns of bullet sprayers. shame on you and your lack of originality.
|
Mon May 03, 2010 9:30 pm |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
Re: Sound Question
Lafe, CC48 is one of the most productive Lua modders around right now. Go sit in a corner.
|
Mon May 03, 2010 9:31 pm |
|
|
lafe
Joined: Sat Mar 28, 2009 2:33 pm Posts: 718
|
Re: Sound Question
Duh102 wrote: Lafe, CC48 is one of the most productive Lua modders around right now. Go sit in a corner. sarcasm? gawd i hate the lack of voice tone online.
|
Mon May 03, 2010 10:03 pm |
|
|
Lizardheim
DRL Developer
Joined: Fri May 15, 2009 10:29 am Posts: 4107 Location: Russia
|
Re: Sound Question
Lafe, as awesome as your mods are, you really puts CC48's to shame. What's this "sarcasm" anyway?
|
Mon May 03, 2010 10:17 pm |
|
|
lafe
Joined: Sat Mar 28, 2009 2:33 pm Posts: 718
|
Re: Sound Question
Lizard wrote: Lafe, as awesome as your mods are, you really puts CC48's to shame. What's this "sarcasm" anyway? you, my friend, have not seen what i have been cooking up.
|
Mon May 03, 2010 10:34 pm |
|
|
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
Re: Sound Question
lafe wrote: Lizard wrote: Lafe, as awesome as your mods are, you really puts CC48's to shame. What's this "sarcasm" anyway? you, my friend, have not seen what i have been cooking up. Must be cooking in a crock pot.
|
Mon May 03, 2010 10:47 pm |
|
|
lafe
Joined: Sat Mar 28, 2009 2:33 pm Posts: 718
|
Re: Sound Question
whitty wrote: lafe wrote: Lizard wrote: Lafe, as awesome as your mods are, you really puts CC48's to shame. What's this "sarcasm" anyway? you, my friend, have not seen what i have been cooking up. Must be cooking in a crock pot. lols. anyways, maby its not cricket good, but its pretty nice.
|
Tue May 04, 2010 12:58 am |
|
|
MrC121989
Joined: Wed Feb 10, 2010 12:41 pm Posts: 182 Location: OMG where am i ?
|
Re: Sound Question
Tried to do this, but i'm keep crashing my game, not sure how to do it, havent done it before. Can someone write a template of AEmitter with sound and of attachment that i need to put in an object.
BTW just had a thought, will the music be affected by game lag/timescale ?
|
Tue May 04, 2010 8:30 am |
|
|
LowestFormOfWit
Joined: Mon Oct 06, 2008 2:04 am Posts: 1559
|
Re: Sound Question
MrC121989 wrote: Tried to do this, but i'm keep crashing my game, not sure how to do it, havent done it before. Can someone write a template of AEmitter with sound and of attachment that i need to put in an object.
BTW just had a thought, will the music be affected by game lag/timescale ? Music being played with "AudioMan:PlayMusic" and other UI related sounds, no. All other sounds, yes.
|
Tue May 04, 2010 8:41 am |
|
|
|