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
G510s Offline
Banned

Posts: 58
Threads: 32
Joined: Jun 2014
#1
music

the music from the first level is still playing in the 2nd level...this is my script.


--------------
01_UnTold.hps
--------------

void OnStart()
{
PlayMusic("10_amb", true, 4.3, 7, 0, true);


AddUseItemCallback("", "Key_01", "Door_01", "DoorUnlock", true);


AddEntityCollideCallback("Player", "Script", "Music", true, 1);
}

void DoorUnlock(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "Unlock_Door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

void Music(string &in asParent, string &in asChild, int alState)
{
PlayMusic("dan_Brute", true, 3.2, 8, 10, true);
}








void OnEnter()
{

}







void OnLeave()
{

}


--------------
02_UnTold.hps
--------------

void OnStart()
{
PlayMusic("01_amb_darkness", true, 4.3, 7, 1, true);
}


void DoorLockedPlayer(string &in entity)
{

GetSwingDoorLocked("DoorMessage");
SetMessage("Sign", "msgname", 0);

}





void OnEnter()
{

}




void OnLeave()
{

}
06-16-2014, 10:15 PM
Find


Messages In This Thread
music - by G510s - 06-16-2014, 10:15 PM
RE: music - by Neelke - 06-16-2014, 10:23 PM
RE: music - by G510s - 07-07-2014, 08:59 AM
RE: music - by Lizard - 06-16-2014, 10:29 PM
RE: music - by Mudbill - 06-16-2014, 10:44 PM
RE: music - by Lizard - 06-16-2014, 10:56 PM
RE: music - by PutraenusAlivius - 07-07-2014, 11:06 AM
RE: music - by G510s - 07-08-2014, 08:49 AM
RE: music - by Lizard - 07-08-2014, 09:27 AM
RE: music - by G510s - 07-08-2014, 11:30 PM
RE: music - by Mudbill - 07-08-2014, 11:46 PM



Users browsing this thread: 1 Guest(s)