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
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#2
RE: script

I don't see any problems with it. However it may be more efficient to cause the sound to loop rather than make the timer repeat. Just change your command to this:

void pianotimer(string &in asTimer)
{
PlaySoundAtEntity("piano", "general_piano03.snt", "piano", 0, true);
}

void pianostop(string &in asParent, string &in asChild, int alState)
{
StopSound("piano", 0);
}

(This post was last modified: 06-18-2012, 04:57 AM by Damascus.)
06-18-2012, 04:56 AM
Find


Messages In This Thread
script - by Shift421 - 06-18-2012, 04:50 AM
RE: script - by Damascus - 06-18-2012, 04:56 AM



Users browsing this thread: 1 Guest(s)