Author Topic: Unit Created Finished Sound?  (Read 1510 times)

RealtimeFreak

  • Guest
Unit Created Finished Sound?
« on: 13 June 2010, 12:35:22 »
Hello together,

i have a small Question,
there is a possibility,
per unit type, a created finished sound adjustable?
are it a special skill for?

what i mine:
so if the unit created procedure ends, then plays a Sound without loop

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Unit Created Finished Sound?
« Reply #1 on: 13 June 2010, 13:05:35 »
You can set a sound for when buildings are built, in the <command> xml node, with a <built-sound>

Will create a ticket to do the same for produce & morph.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

RealtimeFreak

  • Guest
Re: Unit Created Finished Sound?
« Reply #2 on: 13 June 2010, 14:26:51 »
yes, i know
but, its not for a building
ok, you mean i shall a ticket creating?

thank you nevertheless silnarm,

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Unit Created Finished Sound?
« Reply #3 on: 14 June 2010, 05:58:33 »
I created a ticket, in 0.3 you'll be able to do the equivalent of <built-sound> with produce and morph, #133. There is also another produce/morph related ticket to make it possible to specify produced/morphed units in a sub-menu as the build command currently does, #113.

Cheers
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ZaggyDad

  • Guest
Re: Unit Created Finished Sound?
« Reply #4 on: 19 June 2010, 01:35:00 »
Or you could add something like <finished-sound> as part of the command node, so that you could make a sound play at the end of any type of command you want one on. And then if you add another type of command that it may be suitable to have a sound on, you wouldn't need to add the sound property to the command type.
« Last Edit: 19 June 2010, 01:38:56 by Zaggy1024 »

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Unit Created Finished Sound?
« Reply #5 on: 19 June 2010, 11:54:40 »
Or you could add something like <finished-sound> as part of the command node, so that you could make a sound play at the end of any type of command you want one on. And then if you add another type of command that it may be suitable to have a sound on, you wouldn't need to add the sound property to the command type.

Yep, that makes perfect sense, will do.  Upgrade is another that we'll want this on.
Glest Advanced Engine - Code Monkey

Timeline | Downloads