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
talking units
Moderator: Moderators
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: talking units
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.)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
Re: talking units
xta coms are able to sing (select them and press the sing-button)
Re: talking units
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?
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
xta coms singing is heard by enemies
Re: talking units
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
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 workknorke wrote:xta coms singing is heard by enemies
is there not some magic code i could put in the lua/fbi file linking to some .wav files with timers?
Re: talking units
what do you mean by cob based unit sounds?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)
Re: talking units
Sounds played via the units animation script (currently only the bos/cob format not lua unit scripts)