UnscynedCtrl PlaySoundFile Channel request

UnscynedCtrl PlaySoundFile Channel request

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

UnscynedCtrl PlaySoundFile Channel request

Post by FLOZi »

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. 8)

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. :?
Post Reply

Return to “Feature Requests”