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
Help with sound problem
Eyeball27 Offline
Junior Member

Posts: 13
Threads: 3
Joined: Nov 2010
Reputation: 0
#3
RE: Help with sound problem

Here is the portion with the sound cue. (scare_whine_loop1)

void collideroom1(string &in asParent, string &in asChild, int alState)
{    
    SetSwingDoorClosed("door_2", true, true);
    
    SetSwingDoorClosed("door_1", true, true);

    SetSwingDoorLocked("door_2", true, true);
    
    SetSwingDoorLocked("door_1", true, true);
        
    StartPlayerLookAt("door_2", 2.0f, 1.0f, "");
    
    PlaySoundAtEntity("", "scare_slam_door", "door_2", 0, false);
    
    PlayGuiSound("react_scare", 1.5f);
    
    PlayMusic("scare_whine_loop1", false, 1.5, 0.1, 10, false);
    
    GiveSanityDamage(5.0f, true);
    
    AddTimer("Scare2", 0.5f, "stopstare");
}

But even when I disable the sound cue, even remove it from the script entirely, the sound still plays when I load the map.

I'm very new to scripting and I fool around with stuff till it works (for example, Im pretty sure I'm using PlayGuiSound wrong, but it does work)
(This post was last modified: 11-29-2010, 07:09 PM by Eyeball27.)
11-29-2010, 07:08 PM
Find


Messages In This Thread
Help with sound problem - by Eyeball27 - 11-28-2010, 11:40 PM
RE: Help with sound problem - by Akumasama - 11-29-2010, 04:01 PM
RE: Help with sound problem - by Eyeball27 - 11-29-2010, 07:08 PM
RE: Help with sound problem - by LoneWolf - 11-29-2010, 07:22 PM
RE: Help with sound problem - by Eyeball27 - 11-29-2010, 11:03 PM
RE: Help with sound problem - by Eyeball27 - 11-30-2010, 01:21 AM



Users browsing this thread: 1 Guest(s)