Creating multiple buttons for one door: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| No edit summary | Thunder4ik (talk | contribs)  m (→Setting the buttons to open the door: Unicodifying, replaced: [[Image: → [[File: (6)) | ||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{lang|Creating multiple buttons for one door|title=Portal – Tutorial – Multiple Buttons For One Door}} | ||
| {{back | Portal Level Creation}} | {{back|Portal Level Creation}} | ||
| This tutorial will detail the basics of getting a door to open only when two (or more) buttons are activated. | This tutorial will detail the basics of getting a door to open only when two (or more) buttons are activated. | ||
| == Door, buttons and triggers == | ==Door, buttons and triggers== | ||
| Create your doorway and two buttons by following the tutorials [[Floor button]] and [[Test Chamber Door]]. | Create your doorway and two buttons by following the tutorials [[Floor button]] and [[Test Chamber Door]]. | ||
| == Setting the buttons to open the door == | ==Setting the buttons to open the door== | ||
| Create a [[math_counter]] entity, and put it near your door.  | Create a [[math_counter]] entity, and put it near your door. Set the following properties: | ||
| ::{| class=standard-table | ::{| class=standard-table | ||
| !  Property Name || Value | !  Property Name || Value | ||
| Line 24: | Line 22: | ||
| !   || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | !   || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
| |- | |- | ||
| | [[ | | [[File:Io11.png]] || OnHitMax || door_left || Open || <none> || 0.00 || No | ||
| |- | |- | ||
| | [[ | | [[File:Io11.png]] || OnHitMax || door_right || Open || <none> || 0.00 || No | ||
| |} | |} | ||
| Now go to each of your <code>floor_button_door</code> brush entities and set these outputs: | Now go to each of your <code>floor_button_door</code> brush entities and set these outputs: | ||
| Line 32: | Line 30: | ||
| !   || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | !   || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
| |- | |- | ||
| | [[ | | [[File:Io11.png]] || OnOpen || door_counter || Add || 1 || 0.00 || No | ||
| |- | |||
| | [[File:Io11.png]] || OnClose || door_counter || Subtract || 1 || 0.00 || No | |||
| |- | |- | ||
| | [[ | | [[File:Io11.png]] || OnClose || door_left|| Close || <none> || 0.00 || No | ||
| |- | |- | ||
| | [[ | | [[File:Io11.png]] || OnClose || door_right|| Close || <none> || 0.00 || No | ||
| |} | |} | ||
| == See also == | ==See also== | ||
| * [[Portal Level Creation]] | * [[Portal Level Creation]] | ||
Latest revision as of 18:21, 7 January 2024
This tutorial will detail the basics of getting a door to open only when two (or more) buttons are activated.
Door, buttons and triggers
Create your doorway and two buttons by following the tutorials Floor button and Test Chamber Door.
Setting the buttons to open the door
Create a math_counter entity, and put it near your door. Set the following properties:
- Property Name - Value - Name - door_counter - Maximum Legal Value - 2 
 
For the Maximum Legal Value key value, you can enter whatever number you need.
Now go to the Outputs tab and set the following outputs:
Now go to each of your floor_button_door brush entities and set these outputs:


























