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
Ambient sound
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#3
RE: Ambient sound

It's simpler when using one sound and not so advanced as the one in the advanced script widgets thread.

This is what you can use:

void OnStart()
{
     Breathe();
}
void Breathe()
{
     int x = RandInt(5, 15);
     PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
     AddTimer("", x, Breathe2");
}
void Breathe2(string &in asTimer)
{
     Breathe();
}

05-31-2011, 11:00 PM
Find


Messages In This Thread
Ambient sound - by Henriksen - 05-31-2011, 12:46 PM
RE: Ambient sound - by cook - 05-31-2011, 12:52 PM
RE: Ambient sound - by Kyle - 05-31-2011, 11:00 PM



Users browsing this thread: 1 Guest(s)