Frictional Games Forum (read-only)
[SCRIPT] Script Error - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Script Error (/thread-29962.html)



Script Error - MaksoPL - 05-26-2015

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?


RE: Script Error - DnALANGE - 05-26-2015

PlayMusic("YourMusicFike.ogg", true, 0.5, 3, 0, true);
AFTER the .ogg must be a BOOL (true or false)