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:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't play music
amusei Offline
Junior Member

Posts: 23
Threads: 8
Joined: Aug 2012
Reputation: 2
#1
Can't play music

I have a problem with the PlayMusic function.
This is my OnEnter part of the script
void OnEnter()
{
    PlayMusic("amb_25.ogg", true, 1.0f, 0, 1, true);
}

The problem is that the music doesn't play when I enter the map.
I also tried to play it with the AddEntityCollideCallback func but it still doesn't play when I enter the script area

    void OnStart()
{
AddEntityCollideCallback("Player", "StartMusic", "Music", true, 1);
}

void Music(string &in asParent, string &in asChild, int alState)
{
    PlayMusic("amb_25.ogg", true, 1.0f, 0, 1, true);
}
If anyone know how to resolve this do not hesitate to tell me Big Grin
(This post was last modified: 08-16-2012, 08:57 AM by amusei.)
08-14-2012, 04:05 PM
Find


Messages In This Thread
Can't play music - by amusei - 08-14-2012, 04:05 PM
RE: Can't play music - by Adny - 08-14-2012, 04:12 PM
RE: Can't play music - by amusei - 08-16-2012, 06:53 AM
RE: Can't play music - by Robby - 08-16-2012, 07:04 AM
RE: Can't play music - by amusei - 08-16-2012, 08:53 AM
RE: Can't play music - by Your Computer - 08-16-2012, 05:28 PM



Users browsing this thread: 1 Guest(s)