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
Music Script Help
KHShox Offline
Junior Member

Posts: 28
Threads: 11
Joined: Apr 2011
Reputation: 0
#1
Music Script Help

Alright here is the code
////////////////////////////////
///Run when entering map
void OnEnter()
{
AddTimer("FadeIntro", 0, "FadeIntro");
StopMusic(23,0);
}

void FadeIntro(string &in asTimer)
{
FadeOut(0);
FadeIn(6);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

////////////////////////////
// Run first time starting map
void OnStart()
{
    PlayMusic("mozart_music", true, 0.7f, 1, 0, true);
    AddEntityCollideCallback("Player", "Doorclose", "Doorclose", true, 1);
}


    void Doorclose(string &in asParent, string &in asChild, int alState)
{
    SetSwingDoorClosed("mansion_1", true, true);
    SetSwingDoorLocked("mansion_1", true, true);
    GiveSanityDamage(2, true);
}
It just won't play.
I have the music file EVERYWHERE. Is there anything wrong with this script?

[Image: bf3_sig-1298673357.jpg]
(This post was last modified: 04-19-2011, 12:14 AM by KHShox.)
04-18-2011, 11:12 PM
Find


Messages In This Thread
Music Script Help - by KHShox - 04-18-2011, 11:12 PM
RE: Music Script Help - by Dalroc - 04-18-2011, 11:56 PM
RE: Music Script Help - by KHShox - 04-19-2011, 12:14 AM
RE: Music Script Help - by Kurton - 04-19-2011, 03:31 AM



Users browsing this thread: 1 Guest(s)