MaksoPL
Member
Posts: 51
Threads: 26
Joined: Mar 2014
Reputation:
0
|
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 |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
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 |
|