Search
Username:
Password:
Register or Reset Password
Remove the ads!
  
Buttons & doors pt.2
Difficulty: Beginner
Category: PRTL > Other/MiscAuthor(s): Hikura

Create a math_counter entity, and put it near your door. Set the following properties:

|Property Name | Value
|Name |buttoncounter
|Maximum Legal Value |2

Now go to the Outputs tab and set the following outputs:

Free Image Hosting at www.ImageShack.us
(click for larger pic)

Now go to each of your button_top_door brush entities and set these:

Free Image Hosting at www.ImageShack.us
(click for larger pic)

---------------------------------------------------------

Theory

---------------------------------------------------------

The counter starts at zero. When you activate a button by any means, the button adds 1 to the counter. When you deactivate a button, the button subtracts 1 from the counter. When the counter reaches the maximum value 2, it opens the door and sets the minimum value as 1. When the counter reaches this minimum value, it closes the door and clears the minimum value.

This scenario can be easily adapted to have more requirements, different requirements, or different actions.
Added: 9 months agoTags: portal, multiple buttons for door
Feedback (1)
.
Holiday Uberstyle soon.Y2M
Posted 8 months ago
Could you move this tutorial to the Portal > Mapping section please?
- Holiday Uberstyle soon.
Add Feedback
Provide constructive feedback. What is "constructive"?
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
No assessments made... please vote!
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.

Added by...
Hikura .
Bananite
Ranked 6073rd ( 9) with 205 points.

[+] Donate
Related Tutorials