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
Piano Music Wont Stop?(goto post #4)
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#6
RE: Piano Music Wont Stop?(goto post #4)

(12-30-2011, 03:57 PM)Apjjm Wrote: You might need to use the sound's name to identify the sound:

void OnStart()
{
AddEntityCollideCallback("Player", "PianoStop", "PianoStop", true, 1);
PlaySoundAtEntity("Piano_Sound1", "general_piano04", "Piano", 0, false);
}

void PianoStop(string &in asParent, string &in asChild, int alState)
{
StopSound("Piano_Sound1", 0);
}
That was it, thanks for that. +1 rep


[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
12-31-2011, 07:04 AM
Find


Messages In This Thread
RE: Surround Sound Custom Music? - by flamez3 - 12-30-2011, 06:18 AM
RE: Surround Sound Custom Music? - by Tripication - 12-30-2011, 06:42 AM
RE: Surround Sound Custom Music? - by Tripication - 12-30-2011, 11:40 AM
RE: Piano Music Wont Stop?(goto post #4) - by Tripication - 12-31-2011, 07:04 AM



Users browsing this thread: 1 Guest(s)