Frictional Games Forum (read-only)

Full Version: FATAL ERROR
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
"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()
{
}
The Level Door is NOT a swing door, hence it uses different code Smile :
PHP Code:
SetLevelDoorLocked("<name_of_your_door>"false); 
(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!
No problem! Good luck with your story!