The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Music dont continue [Solved]
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#1
Music dont continue [Solved]

Hey i want to stop the Outside-Mood-music, when i'm entering a building so i decided to add 2 areas. The one area stops the music and the other start it again, when your leaving the building.. everything works except the area, which should start the music again.

The Area which starts the music again
[Image: playmusicepqbmfojuw.jpg]

The Area which stops the music
[Image: stopmusicovycsudi01.jpg]

Here is the script
Quote:void OnStart()
{
//Stops WindMood
AddEntityCollideCallback("Player" , "StopMusic" , "Stop" , true , 1);
//Starts WindMood
AddEntityCollideCallback("Player" , "PlayMusic" , "Play" , true , 1);
}

//Starts WindMood
void Play(string &in asParent, string &in asChild, int alState)
{
PlayMusic("WindMood.ogg", true, 1, 3, 1, true);
}

//Stops WindMood
void Stop(string &in asParent, string &in asChild, int alState)
{
StopMusic(1, 1);
}

//The first time, where the music starts.
void Teleport(string &in asParent, string &in asChild, int alState)
{
FadeRadialBlurTo(25, 0.0f);
FadeOut(2);
ChangeMap("01_traum.map", "TeleportSpawn", "", "");
StopMusic(2, 1);
PlayMusic("WindMood.ogg", true, 1, 3, 1, true);
}

ShipinShen - YouTube
(This post was last modified: 04-22-2014, 11:24 PM by ShipinShen.)
04-22-2014, 09:15 PM
Find


Messages In This Thread
Music dont continue [Solved] - by ShipinShen - 04-22-2014, 09:15 PM
RE: Music dont continue - by Mudbill - 04-22-2014, 10:00 PM
RE: Music dont continue - by ShipinShen - 04-22-2014, 11:24 PM



Users browsing this thread: 1 Guest(s)