Frictional Games Forum (read-only)

Full Version: Puzzles with lamps?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, its me again Big Grin


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? Huh

Thanks Smile
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
Uhm...ok...I try..I think