Frictional Games Forum (read-only)

Full Version: 2 Levers to open a special (wall) door
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i got 1 question.... Is it possible to make a place where there are 2 doors and 1 Secret Door Wall.. .. so in the other 2 doors (level door) you're gonna tp to a cellar and archieves... then you must pull 2 levers on each place... and the wall will go up... (you will hear the sound after the last time you pull the lever.. is this possible ? so yes... how :S
hello.
i have found an Secret door ? and i saw it on most amnesia custom stories... somebody is pulling a lever and the stone is going up.. so you can go progress further...
but how did they do this ?! i don't know the script Sad
Please don't make two threads for the same reason.

You are to use Global Variables.
https://wiki.frictionalgames.com/hpl2/am...s[]=global
Add a ConnectionStateChangeCallback to the levers, then use the SetMoveObjectState script to move the special wall. If you find the entity and it is a "MoveObject" this will work for it. Use the value 1 or -1 to get it to move the way you want.

As for the two levers part, you'll need a variable check to make sure both have been pulled before running the script, as Rom stated. It shouldn't be too hard to figure out.
i no how to do it its in my cs on moddb
thanks all! en yes i got this idea fro myou're custo mstory video Smile but you pullled 1 lever on the same map... i need 2 levers on 2 other maps.. Tongue i'm trying now Big Grin

and nevermind O_o too many script things... i should give up... :S

It works Big Grin thanks but the variable other things i willl not do... to difficult for me... i think
i did it by mudbill video. do everything in his video but instead of a bookshelf put tat secret wall. DONE. rlly easy. i figured it out by myself putting tat secret wall instead of a bookshelf
yes... before reading you're post i just tried something it worked Big Grin but Thanks Big Grin but i need to use it on 2 other maps... that's DIFFICULT so i will lock the lever in 2 chests Tongue