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 problem!
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
Music problem!

When I'm in a level it plays it's music but when I go in a different level which I want it not have music in it! it still plays the music that as played in the other level how can I stop this? i tried doing stopmusic but it just stops the music even in the other level!

my hps file

void OnStart()
{
PlayMusic("02_amb_safe.ogg", true, 1, 4, 1, true);
StopMusic(4, 1);
AddUseItemCallback("", "StorageKey", "StorageDoor", "UseStorageKeyOnDoor", true);
}

void UseStorageKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("StorageDoor", false);
PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false);
RemoveItem(asItem);
}
01-07-2014, 05:42 PM
Find


Messages In This Thread
Music problem! - by Radical Batz - 01-07-2014, 05:42 PM
RE: Music problem! - by Lizard - 01-07-2014, 07:46 PM
RE: Music problem! - by Radical Batz - 01-07-2014, 07:54 PM
RE: Music problem! - by Lizard - 01-07-2014, 07:57 PM
RE: Music problem! - by Radical Batz - 01-07-2014, 08:01 PM
RE: Music problem! - by Neelke - 01-07-2014, 09:23 PM
RE: Music problem! - by Radical Batz - 01-07-2014, 09:33 PM
RE: Music problem! - by Lizard - 01-08-2014, 12:09 AM
RE: Music problem! - by i3670 - 01-07-2014, 11:15 PM



Users browsing this thread: 2 Guest(s)