UnscynedCtrl PlaySoundFile Channel request
Posted: 21 Jun 2010, 23:32
I'd like to be able to pass the channel (General, Battle, UnitReply, UserInterface) I want to play the sound on to Spring.PlaySoundFile.
I can't quite think of how to explain why I want this without just stating the obvious.
It's only half the problem I want to fix though;
It'd also be nice to be able to pass the 'who hears the sound' param that COB PLAY_SOUND has (http://github.com/spring/spring/blob/ma ... Script.cpp line 1039)
But for that you need to be passing a unit id anyway, so perhaps a new PlayUnitSound (string "soundfile", number unitID [, number volume, number whoHears]) call out is in order.
I can't quite think of how to explain why I want this without just stating the obvious.

It's only half the problem I want to fix though;
It'd also be nice to be able to pass the 'who hears the sound' param that COB PLAY_SOUND has (http://github.com/spring/spring/blob/ma ... Script.cpp line 1039)
But for that you need to be passing a unit id anyway, so perhaps a new PlayUnitSound (string "soundfile", number unitID [, number volume, number whoHears]) call out is in order.
