Please or Register to create posts and topics.

A question about buttons

I searched around and couldn't find anything on this, so I though I'd ask.

I'm working on a map, and everything is going quite smoothly. However, I have a large button with a box filter on it that, for reason, always has to be pressed twice before the connected doors will open for the player. Other than that, it works fine.

Any ideas?

What are the I/O settings for the box trigger?

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

The trigger brush for the button just activates the door brush for the button. The door brush unlocks and opens both the left and right door, and that's it.

Trigger:
OnStartTouch ->button_door->Open
OnEndTouch ->button_door->Close

Door:
OnOpen->buttdown->PlaySound
OnOpen->door_right3->Unlock
OnOpen->door_right3->Open
OnOpen->door_left3->Unlock
OnOpen->door_left3->Open
OnClose->buttup->PlaySound

Yes, the doors are meant to stay open.

Figured it out. For some reason when having those outputs on the door brush it wasn't working. Switched it to the trigger brush and it works fine now. some tutorials out there need rewriting. :P

You should always have I/O's like that on a trigger brush and not on some other entity that may or may not move. What was likley happening was either your door was set to Open by default and therefore didn't trigger the OnOpen Outputs until it was Closed, or you didn't give it enough time to open in the first place.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.