FATAL ERROR
"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()
{
}
|