Portal 2

Portal 2

Community maps. For science.
Welcome to Aperture Laboratories, home of the Perpetual Testing Initiative. Easily create, share and play test chambers authored by and for the Portal 2 community. Do your part! Contribute to Science!
Learn More
CooperW 10 9 Jan, 2024 @ 7:11pm
[SOLVED] BEEMOD 2 LOGIC
I am trying to make a game where there is like a closed door and when you press a button to start the game the door opens, what logic do I have to use to get the door to close. BEEMOD2
Last edited by CooperW; 12 Jan, 2024 @ 6:52pm
< >
Showing 1-7 of 7 comments
v0rtex2002 24 9 Jan, 2024 @ 10:11pm 
You could use a toggle switch, so every time they push the button it will switch the state on/off.
CooperW 10 10 Jan, 2024 @ 4:58am 
Originally posted by v0rtex2002:
You could use a toggle switch, so every time they push the button it will switch the state on/off.
thank you but the door is on a 3 second timer so the player cannot leave door shut forever.
(its kinda like five nights at freddys but with portal turrets and like way worse)
v0rtex2002 24 10 Jan, 2024 @ 10:32pm 
I guess I don't understand the problem you're trying to solve, then. Can you restate it?
Last edited by v0rtex2002; 10 Jan, 2024 @ 10:41pm
CooperW 10 12 Jan, 2024 @ 5:27am 
Originally posted by v0rtex2002:
I guess I don't understand the problem you're trying to solve, then. Can you restate it?
what was supposed to happen was the player walks out the entry and they are in a room with 2 closed doors, instead of me just leaving them open, I have them closed so the player does not leave the area before the game starts; when the game starts the doors are supposed to open and there are turret spawners are outside the doors that are on faith plates [ I also need help with the plates, Is there a way to not have turrets disintegrate when they are flung] I have a button next to the door that closes the door for 3 seconds while the turret gets flung by the faith plate. They need to survive for 3 minutes while turrets are spawning at their doors. Main issue is, when I open the doors the logic will not allow them to close again.
Last edited by CooperW; 12 Jan, 2024 @ 5:29am
v0rtex2002 24 12 Jan, 2024 @ 12:06pm 
Originally posted by Serial Designation N:
Originally posted by v0rtex2002:
I guess I don't understand the problem you're trying to solve, then. Can you restate it?
what was supposed to happen was the player walks out the entry and they are in a room with 2 closed doors, instead of me just leaving them open, I have them closed so the player does not leave the area before the game starts; when the game starts the doors are supposed to open and there are turret spawners are outside the doors that are on faith plates [ I also need help with the plates, Is there a way to not have turrets disintegrate when they are flung] I have a button next to the door that closes the door for 3 seconds while the turret gets flung by the faith plate. They need to survive for 3 minutes while turrets are spawning at their doors. Main issue is, when I open the doors the logic will not allow them to close again.
I get it now. Which door are you using? The standing door should suffice for this. I have created a quick example. I'm not sure what you are doing to trigger the start of your game, but I just placed a Trigger-Once inside the entry. I then added a Pedestal Button and a NOT Gate. The button goes thru the NOT and both the NOT and the Trigger-Once are wired thru the and AND Gate. So... when you walk in, the Trigger Once opens the door because the Pedestal Button is NOT on, but when you press the button, the state of the AND becomes false, and the door closes for 3 seconds.

https://dwbvortex.com/images/Screenshot%202024-01-12%20140310.png

https://youtu.be/MT_ehV3g4OQ

Is this what you had in mind?

** EDIT ** Apologies... the AND gate is superfluous. The very nature of the door creates an AND condition when multiple inputs are attached to it. So you really just need whatever initially triggers it (starts your game), and the NOT gate on the pedestal button. :)
Last edited by v0rtex2002; 12 Jan, 2024 @ 12:16pm
CooperW 10 12 Jan, 2024 @ 6:53pm 
Originally posted by v0rtex2002:
Originally posted by Serial Designation N:
what was supposed to happen was the player walks out the entry and they are in a room with 2 closed doors, instead of me just leaving them open, I have them closed so the player does not leave the area before the game starts; when the game starts the doors are supposed to open and there are turret spawners are outside the doors that are on faith plates [ I also need help with the plates, Is there a way to not have turrets disintegrate when they are flung] I have a button next to the door that closes the door for 3 seconds while the turret gets flung by the faith plate. They need to survive for 3 minutes while turrets are spawning at their doors. Main issue is, when I open the doors the logic will not allow them to close again.
I get it now. Which door are you using? The standing door should suffice for this. I have created a quick example. I'm not sure what you are doing to trigger the start of your game, but I just placed a Trigger-Once inside the entry. I then added a Pedestal Button and a NOT Gate. The button goes thru the NOT and both the NOT and the Trigger-Once are wired thru the and AND Gate. So... when you walk in, the Trigger Once opens the door because the Pedestal Button is NOT on, but when you press the button, the state of the AND becomes false, and the door closes for 3 seconds.

https://dwbvortex.com/images/Screenshot%202024-01-12%20140310.png

https://youtu.be/MT_ehV3g4OQ

Is this what you had in mind?

** EDIT ** Apologies... the AND gate is superfluous. The very nature of the door creates an AND condition when multiple inputs are attached to it. So you really just need whatever initially triggers it (starts your game), and the NOT gate on the pedestal button. :)
thank you I fixed it!
[edit] I was using the standing door
Last edited by CooperW; 12 Jan, 2024 @ 6:54pm
v0rtex2002 24 12 Jan, 2024 @ 7:44pm 
Awesome! Glad to hear it!
I'd love it if you'd play my published test chambers! :D
Last edited by v0rtex2002; 12 Jan, 2024 @ 7:45pm
< >
Showing 1-7 of 7 comments
Per page: 1530 50