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
Daniel Breathing?
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#9
RE: Daniel Breathing?

(05-30-2011, 11:49 PM)xiphirx Wrote: ... Are you sure? Works fine here.

By the way, made the code better

void OnEnter()
{
     AddTimer("tmrBreathe", 1.0f, "Breathe");
}
void Breathe(string &in asTimer)
{
     float eventTime = RandFloat(1.0f, 5.0f);
     PlaySoundAtEntity("sndPlayerBreathe", "react_breath.snt", "Player", 0, false);
     AddTimer("tmrBreathe", eventTime, "Breathe");
}

What's the point? You can easily simplify it, but this is useless if you aren't going to use floats and then call it floats when you are using integers. It would make sense if you were going to change it, but you're not. Cool if it works. If that's how you like it, that's your opinion. :p

05-31-2011, 12:22 AM
Find


Messages In This Thread
Daniel Breathing? - by laser50 - 05-30-2011, 12:07 PM
RE: Daniel Breathing? - by Kyle - 05-30-2011, 01:01 PM
RE: Daniel Breathing? - by laser50 - 05-30-2011, 10:29 PM
RE: Daniel Breathing? - by xiphirx - 05-30-2011, 10:46 PM
RE: Daniel Breathing? - by Kyle - 05-30-2011, 11:05 PM
RE: Daniel Breathing? - by xiphirx - 05-30-2011, 11:06 PM
RE: Daniel Breathing? - by Kyle - 05-30-2011, 11:09 PM
RE: Daniel Breathing? - by xiphirx - 05-30-2011, 11:49 PM
RE: Daniel Breathing? - by Kyle - 05-31-2011, 12:22 AM
RE: Daniel Breathing? - by xiphirx - 05-31-2011, 12:31 AM



Users browsing this thread: 1 Guest(s)