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
Stopping music, spawning objects. Help.
Shylia Offline
Junior Member

Posts: 14
Threads: 3
Joined: Jan 2015
Reputation: 0
#1
Wink  Stopping music, spawning objects. Help.

Hello! I've tried for a while to make this thing work. I want to stop a song that plays when you turn the crank on the Phonograph when I enter a Script Area. But no matter what I do or try I can't seem to make the song stop.

Here is my little script.

Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player", "Act1", "Welcome1", true, 1);
}

void OldMusicPlay1(string &in asEntity, int alState)
{
if(alState == 1)
{
PlaySoundAtEntity("", "OldMusic1.snt", "OldMusic1", 0, false);
}
}

void Welcome1(string &in asParent, string &in asChild, int alState)
{
StopSound("OldMusic1" 1.0);
}


Also when the music plays, it's not playing on the Phonograph itself, it's more like all over the place no matter how far I am from the Phonograph.
01-08-2015, 11:11 AM
Find


Messages In This Thread
Stopping music, spawning objects. Help. - by Shylia - 01-08-2015, 11:11 AM



Users browsing this thread: 1 Guest(s)