Page 1 of 1
talking units
Posted: 09 Aug 2010, 21:42
by dcore221
is it possible to make units play .wav audio files at certain times or in certain situations?
i want to make a evil villain style unit that mocks players
Re: talking units
Posted: 10 Aug 2010, 03:13
by CarRepairer
dcore221 wrote:is it possible to make units play .wav audio files at certain times or in certain situations?
i want to make a evil villain style unit that mocks players
Load up a game of CA and be sure to choose Core as your faction. (If you don't hear voices, hit F11 and enable the
Voices widget.)
Re: talking units
Posted: 10 Aug 2010, 08:25
by manolo_
xta coms are able to sing (select them and press the sing-button)
Re: talking units
Posted: 11 Aug 2010, 17:15
by dcore221
the ca talking units widget is cool but can the sounds be heard by other players? the unit im making will be an enemy unit so players have to hear it,
i dont want any other units to talk just this one unit,
is there anything i can add to the fbi/lua?
Re: talking units
Posted: 11 Aug 2010, 23:14
by knorke
xta coms singing is heard by enemies
Re: talking units
Posted: 12 Aug 2010, 01:02
by FLOZi
Note that lua only has Spring.PlaySoundFile and Spring.PlaySoundStream, which lack some of the functionality of COB based unit sounds (which has a param to control who and how will hear it)
Re: talking units
Posted: 12 Aug 2010, 01:04
by dcore221
knorke wrote:xta coms singing is heard by enemies
ano but you have to press a button to make it sing, the unit will be a replacement for the chicken queen it will be controlled by a bot dont see how it could work
is there not some magic code i could put in the lua/fbi file linking to some .wav files with timers?
Re: talking units
Posted: 12 Aug 2010, 01:07
by dcore221
FLOZi wrote:Note that lua only has Spring.PlaySoundFile and Spring.PlaySoundStream, which lack some of the functionality of COB based unit sounds (which has a param to control who and how will hear it)
what do you mean by cob based unit sounds?
Re: talking units
Posted: 12 Aug 2010, 01:55
by FLOZi
Sounds played via the units animation script (currently only the bos/cob format not lua unit scripts)