Frictional Games Forum (read-only)
[SCRIPT] FATAL 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] FATAL ERROR (/thread-25847.html)



FATAL ERROR - Conrad285 - 08-12-2014

"could not load script file ... main (10,2) : ERR : No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)'

I've been able to fix it up until here but no matter what I try I'm obviously missing something from looking at it for too long.

and here's my script:

void OnStart()
{
AddUseItemCallback ("", "Mainfloor_key", "MainFloorLevel", "StoryTransition", true);
AddEntityCollideCallback("Player", "ScriptArea_1", "corpse_male_1", true, 1);
PlayMusic ("02_amb_strange.ogg", true, 3, 3, 0, true);
}

void StoryTransition(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("MainFloorLevel", false, true);
PlaySoundAtEntity("", "unlock_door", "MainFloorLevel", 0, false);
RemoveItem("Mainfloor_key");
}

void corpse_male_1 (string &in asParent, string &in asChild, int alState)

{
SetEntityActive("corpse_male_1", true);
AddPropForce("corpse_male_1", 0, 0, -10000, "world");
PlaySoundAtEntity ("", "24_iron_maiden.snt", "Player", 0, false);
}
void OnEnter()
{
}
void OnLeave()
{
}


RE: FATAL ERROR - Romulator - 08-12-2014

The Level Door is NOT a swing door, hence it uses different code Smile :
PHP Code:
SetLevelDoorLocked("<name_of_your_door>"false); 



RE: FATAL ERROR - Conrad285 - 08-12-2014

(08-12-2014, 08:15 AM)Romulat✪r (✿◠‿◠) Wrote: The Level Door is NOT a swing door, hence it uses different code Smile :
PHP Code:
SetLevelDoorLocked("<name_of_your_door>"false); 

Thank you so much! Worked like a charm!


RE: FATAL ERROR - Romulator - 08-12-2014

No problem! Good luck with your story!