Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stopping Lantern Sound ?
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#4
RE: Stopping Lantern Sound ?

Yes, that's what I did:

StopSound("ui_lantern_off", 0.0f);
//I also tried this:
StopSound("ui_lantern_off.snt", 0.0f);
//same with the on sounds.
This didn't work however.
If I recall correctly, I used that code in SetLanternLitCallback. When I think about it, maybe a looping timer might help, but...

StopSound(string& asSoundName, float afFadeTime);
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
StopSound requires asSoundName, and when using the "Show sounds playing" it only shows the asSoundFile (I checked that with other sounds I set up).
So if the UI sounds don't have such names, what I'm trying to achieve might be impossible ¯\_(ツ)_/¯

PS. I was trying to refer to .snt, not .ogg, in the previous post

09-16-2018, 03:05 PM
Find


Messages In This Thread
Stopping Lantern Sound ? - by Darkfire - 09-03-2018, 06:48 PM
RE: Stopping Lantern Sound ? - by Luis - 09-06-2018, 03:55 PM
RE: Stopping Lantern Sound ? - by Mudbill - 09-06-2018, 04:30 PM
RE: Stopping Lantern Sound ? - by Darkfire - 09-16-2018, 03:05 PM



Users browsing this thread: 1 Guest(s)