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
"Stopsound" not working
modoscar Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jun 2012
Reputation: 0
#1
"Stopsound" not working

In the end of my map the player gets chased by a monster. When the player jumps into a ball of light the credits start, but the "terror" sound plays while the credits are rolling.



This is what i tried to use

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

{
StartCredits("pinball", true, "Ending", "MainCredits", 0);
StopSound("ui_terror_meter", 0);

}
06-21-2012, 03:15 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#2
RE: "Stopsound" not working

I don't think you can stop that sound this way, as you need a internal name, and this sound is played automatically, but try to add .snt to the sound. If that doesn't work, I have no idea.
06-21-2012, 03:46 PM
Find
modoscar Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jun 2012
Reputation: 0
#3
RE: "Stopsound" not working

(06-21-2012, 03:46 PM)FastHunteR Wrote: I don't think you can stop that sound this way, as you need a internal name, and this sound is played automatically, but try to add .snt to the sound. If that doesn't work, I have no idea.
Yeah i tried with .snt at the end still doesn't work :/ guess you can't stop the automatic sound that easy
06-21-2012, 07:42 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#4
RE: "Stopsound" not working

You can try the following: add a script area near the end, and a collide callback. that fcollide callback starts a function where the enemy is set to dissapear(FadeEnemyToSmoke(string& asName, bool abPlaySound)Wink
This way the sound may stop before the credits roll
06-21-2012, 07:49 PM
Find
modoscar Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jun 2012
Reputation: 0
#5
RE: "Stopsound" not working

(06-21-2012, 07:49 PM)FastHunteR Wrote: You can try the following: add a script area near the end, and a collide callback. that fcollide callback starts a function where the enemy is set to dissapear(FadeEnemyToSmoke(string& asName, bool abPlaySound)Wink
This way the sound may stop before the credits roll
Tried making the area, and the monsters does indeed dissapear but the sound still plays for around 3 seconds afterwards, and if the sound is playing when the credits starts to roll it will play during all of the credits.. wierd
06-21-2012, 08:10 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#6
RE: "Stopsound" not working

then place the area about 3 seconds before the end Tongue
06-21-2012, 08:12 PM
Find
modoscar Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jun 2012
Reputation: 0
#7
RE: "Stopsound" not working

(06-21-2012, 08:12 PM)FastHunteR Wrote: then place the area about 3 seconds before the end Tongue
Yeah thats pretty obviousWink but that wouldn't work for my end. Thanks for your help anyway Smile
06-21-2012, 08:17 PM
Find




Users browsing this thread: 1 Guest(s)