The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.10 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help StopSound Not Working With Fade?
BonesTheRabbit Offline
Member

Posts: 68
Threads: 20
Joined: Feb 2012
Reputation: 2
#1
StopSound Not Working With Fade?

So, I've encountered a strange bug. StopSound doesn't seem to work for looping .snt files, if the afFadeTime value is anything but zero. Have tested it with 24_mb_02 and 24_knife specifically. Was just wondering if anyone has had a similar experience with this.

void soundToggle()
{
    if (booleanVariable = false)
    {
        StopSound("groaning", 0); // If this is anything but zero, the script doesn't seem to work. That is to say, the sound just doesn't stop.
        
        AddDebugMessage("Sound stop.", false);
    }
    if (booleanVariable = true)
    {
        PlaySoundAtEntity("groaning", "24_mb_02", "mainHallBody", 4, true); // Doesn't seem to matter if abSaveSound is true or false.
        
        AddDebugMessage("Sound start.", false);
    }
}
(This post was last modified: 10-30-2015, 02:45 AM by BonesTheRabbit.)
10-30-2015, 02:45 AM
Find


Messages In This Thread
StopSound Not Working With Fade? - by BonesTheRabbit - 10-30-2015, 02:45 AM



Users browsing this thread: 1 Guest(s)