Page 1 of 1

Odd Audio Question

Posted: 08 Jan 2010, 20:39
by Voidranaut
the probleam:

I made a unit that speaks a little when you select him

but his sound bits are a few seconds long

this means when I click on him and give him an order quickly he starts two audio frases without letting the first one finish

so it sounds like a bit of garbage as he talks over himself if I dont wait for the talking to end before giveing him the next command

so here is my question:

is there any way to make do a signal mask for audio to make him NOT speak tell his last spoken frase is finished? (I assume this is possible since Warcraft, starcraft, and just about every other rts out there works like that)

any info or segjested places to look for answers would be very appriciated

thanks for your time :)

Re: Odd Audio Question

Posted: 08 Jan 2010, 21:09
by Argh
Use Lua to intercept those events and handle playing the sounds in a smarter way.

Re: Odd Audio Question

Posted: 08 Jan 2010, 22:46
by Voidranaut
aaa that makes seance

thank you :)

currently I am trying to find a list of lua audio commands

but so far my key word searches have been turning up nil

is there any good places to look for a complete audio commands list?

(sorry I dont know the file structure well enough to just look them up in the game folders yet)

again thanks for taking the time to read and respond :)

Re: Odd Audio Question

Posted: 08 Jan 2010, 22:49
by CarRepairer
http://trac.caspring.org/browser/trunk/ ... noises.lua

http://trac.caspring.org/browser/trunk/ ... voices.lua

Also, you should put these types of questions in the Games and Mods forum because you're asking for help in developing a game.

Re: Odd Audio Question

Posted: 08 Jan 2010, 22:58
by Voidranaut
oh I see sorry I will put my quarry in the right area next time

and thanks for the info :)

Re: Odd Audio Question

Posted: 10 Jan 2010, 01:56
by Tribulex
sounds awesome what kinds of things does he say?