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

Posts: 28
Threads: 11
Joined: Apr 2011
Reputation: 0
#5
RE: Custom Music

Yep
////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

}

////////////////////////////
// Run first time starting map
void OnStart()
{
    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);
    PlayMusic("mozart_music.ogg", false, 0.7f, 0, 10, false);
}

[Image: bf3_sig-1298673357.jpg]
04-16-2011, 05:21 PM
Find


Messages In This Thread
Custom Music - by KHShox - 04-16-2011, 12:14 AM
RE: Custom Music - by Tanshaydar - 04-16-2011, 12:34 AM
RE: Custom Music - by KHShox - 04-16-2011, 01:29 AM
RE: Custom Music - by Tanshaydar - 04-16-2011, 12:16 PM
RE: Custom Music - by KHShox - 04-16-2011, 05:21 PM
RE: Custom Music - by Tanshaydar - 04-16-2011, 10:52 PM
RE: Custom Music - by Anxt - 04-16-2011, 10:55 PM
RE: Custom Music - by ferryadams10 - 04-18-2011, 08:31 PM
RE: Custom Music - by PvtLastClass - 04-18-2011, 08:36 PM
RE: Custom Music - by nkmol - 04-18-2011, 08:42 PM
RE: Custom Music - by ferryadams10 - 04-19-2011, 07:20 AM
RE: Custom Music - by Tanshaydar - 04-19-2011, 11:52 AM



Users browsing this thread: 1 Guest(s)