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 Script Error
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#1
Script Error

Hi. I've got a error with music script.
"Main 8,1 : No matching signatures to 'PlayMusic(string@&,const double,const double, const bool)'"
This is my script file:
void OnStart()
{
AddEntityCollideCallback("Player","Start_Music","Start_Music",false,1);
}

void Start_Music(string &in asParent, string &in asChild, int alState)
{
PlayMusic("01_amb_darkness",0.8,0.1,1.0,true);
}


What's wrong?
05-26-2015, 04:12 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: Script Error

PlayMusic("YourMusicFike.ogg", true, 0.5, 3, 0, true);
AFTER the .ogg must be a BOOL (true or false)
(This post was last modified: 05-26-2015, 04:17 PM by DnALANGE.)
05-26-2015, 04:17 PM
Find




Users browsing this thread: 1 Guest(s)