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
How Can I Raise Sound Volume?
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#6
RE: How Can I Raise Sound Volume?

(09-17-2010, 02:45 AM)theDARKW0LF Wrote:
(09-17-2010, 02:37 AM)MulleDK19 Wrote:
void CollideWalkSoundTrigger1(string &in asParent, string &in asChild, int alState)
{
    float delay = 0.5; //Time between the sounds
    int times = 3; //Number of times to play the sound
    
    for(int i = 1; i <= times; ++i)
    {
        AddTimer("", delay * i, "TimerPlayTheSound");
    }
}

void TimerPlayTheSound(string &in asTimer)
{
    //Play the sound here
}

Sorry for my great lack of knowledge Rolleyes, but is this how I should have it look then?

    void CollideWalkSoundTrigger1(string &in asParent, string &in asChild, int alState)
{
    float delay = 0.5; //Time between the sounds
    int times = 3; //Number of times to play the sound
    
    for(int i = 1; i <= times; ++i)
    {
        AddTimer("", delay * i, "TimerPlayTheSound");
    }
}

void TimerPlayTheSound(string &in asTimer)
{
    PlaySoundAtEntity("", "scare_wood_creak_walk.snt", "Player", 3, false);
}

Yes, but isn't 3 a little too long? You do know that's the fade-in time, right?

[Image: 16455.png]
09-17-2010, 02:47 AM
Find


Messages In This Thread
How Can I Raise Sound Volume? - by theDARKW0LF - 09-17-2010, 02:12 AM
RE: How Can I Raise Sound Volume? - by MulleDK19 - 09-17-2010, 02:21 AM
RE: How Can I Raise Sound Volume? - by MulleDK19 - 09-17-2010, 02:37 AM
RE: How Can I Raise Sound Volume? - by MulleDK19 - 09-17-2010, 02:47 AM
RE: How Can I Raise Sound Volume? - by MulleDK19 - 09-17-2010, 03:16 AM
RE: How Can I Raise Sound Volume? - by MulleDK19 - 09-17-2010, 03:27 AM



Users browsing this thread: 1 Guest(s)