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 Help Sound wont stop playing
serbusfish Offline
Member

Posts: 211
Threads: 75
Joined: Aug 2012
Reputation: 0
#3
RE: Sound wont stop playing

(05-05-2016, 01:36 PM)Mudbill Wrote: Did you use script to start the sound? How does your script look?

First I have this:

Quote:AddEntityCollideCallback("Player", "ScriptArea_5", "Piano", true, 1);

void Piano(string &in asParent, string &in asChild, int alState)

{

PlaySoundAtEntity("", "amb_mansion_gallery_piano_2D.snt", "ScriptArea_6", 0, false);

}

Then:

Quote:AddEntityCollideCallback("Player", "ScriptArea_7", "PianoStop", true, 1);

void PianoStop(string &in asParent, string &in asChild, int alState)

{

StopSound("amb_mansion_gallery_piano_2D.snt", 0.5);

}

05-05-2016, 01:46 PM
Find


Messages In This Thread
Sound wont stop playing - by serbusfish - 05-05-2016, 12:24 PM
RE: Sound wont stop playing - by Mudbill - 05-05-2016, 01:36 PM
RE: Sound wont stop playing - by serbusfish - 05-05-2016, 01:46 PM
RE: Sound wont stop playing - by Romulator - 05-05-2016, 03:28 PM
RE: Sound wont stop playing - by serbusfish - 05-05-2016, 04:44 PM



Users browsing this thread: 1 Guest(s)