Author Topic: Locking Door  (Read 584 times)

How do i make it so that when i set a lever to the ‘on’ position a door will lock but when i set it to ‘off’ the door unlocks. so far i have:

OnActivate>NamedBrick (door)>SetEvent Enabled

This locks the door but when I turn the lever to off the door doesnt unlock

If the door still has the default events this is how you do it.

On the lever put:
OnContentStart/NamedBrick/SetEventEnabled 0 [ ]
And then
OnContentStop/NamedBrick/SetEventEnabled 0


That should do it.

(Tick) (delay)  OnActivate>NamedBrick (door)>SetEvent Enabled (events) (tick)

(No tick) (delay)  OnActivate>NamedBrick (door)>SetEvent Enabled (events) (no tick)

(Tick) (delay)  OnActivate>Self>Toggleeventsenabled (0 1)[or the numbers of the above two events if they're different]

I hope that helps.

thanks that worked

Or you can use

 onContentStart Named Brick  setEventEnabled
  • [ ]

                         {  Door }

 onContentEnd Named Brick  setEventEnabled
  • [Check]

                       {  Door }