Puzzles with lamps? - 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: Puzzles with lamps? (/thread-8822.html) |
Puzzles with lamps? - SkuLLfac3 - 06-26-2011 Hey, its me again I have a question. Does anyone know, whether its possible to make a puzzle with lamps? I imagine something like that: There a few lamps (we say 7 of the big blue standing torches) and a locked door. And the door will open when all lamps are on. Or there is a lever which can be activated when the lamps are on. Is something like that possible and if yes, does anyone know the scriptfunctions? Thanks RE: Puzzles with lamps? - KikoKuruma - 06-26-2011 You could use SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction); This could then call up the SetSwingDoorUnlock But i suppose if you wanted to use multiple lights to unlock the door, you would have to script a couple different variables, that would change from 0 to 1 as the player lit the lamps, then use an and situation that would call up SetSwingDoorUnlock after all the variables are switched to 1 RE: Puzzles with lamps? - SkuLLfac3 - 06-26-2011 Uhm...ok...I try..I think |