Frictional Games Forum (read-only)
[SCRIPT] Leveldoor Problem - 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] Leveldoor Problem (/thread-11330.html)

Pages: 1 2


RE: Leveldoor Problem - Togglevolt - 11-14-2011

Works perfectly now! Smile Thanks alot man! I changed it all to:



void CheckLantern(string &in asEntity)
{
SetLevelDoorLocked("level_wood_1", false);
}


void OnEnter()
{

SetEntityPlayerInteractCallback("lantern_1", "CheckLantern", true);
}

And placed "CheckLantern" into the InteractCallback tab of the Lantern.
Now it works just as wanted. Thanks