This article relates to the game "Portal 2". Click here for more information.

Heavy Door (Portal 2): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added)
 
m (Nesciuse moved page Heavy Door (Portal 2)/en to Heavy Door (Portal 2) without leaving a redirect: Move en subpage to basepage)
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{LanguageBar}}
{{P2 topicon}}
[[File:Bts door.jpg|thumb|right|Heavy door]]
[[File:Bts door.jpg|thumb|right|Heavy door]]


Line 10: Line 13:
!  || My Output || Target Entity || Target Input || Parameter || Delay || Only Once
!  || My Output || Target Entity || Target Input || Parameter || Delay || Only Once
|-
|-
| [[Image:Io11.png]] || OnEndTouchAll  || ''door name'' || instance:close_door;Trigger || -- || 0.00 || No
| [[File:Io11.png]] || OnEndTouchAll  || ''door name'' || instance:close_door;Trigger || -- || 0.00 || No
|-
|-
| [[Image:Io11.png]] || OnStartTouch || ''door name'' || instance:open_door;Trigger || -- || 0.00 || No
| [[File:Io11.png]] || OnStartTouch || ''door name'' || instance:open_door;Trigger || -- || 0.00 || No
|}
|}


Line 20: Line 23:


An easy way to make the door one-way is to put your trigger on only one side of the door.
An easy way to make the door one-way is to put your trigger on only one side of the door.
[[Category:Portal 2 Level Design]]
[[Category:Portal 2 Level Design]]
[[Category:Portal 2 Tutorials]]
[[Category:Portal 2 Tutorials]]

Latest revision as of 07:27, 12 July 2024

English (en)Español (es)Français (fr)Русский (ru)Translate (Translate)

Heavy door

The heavy door is found in the Behind the Scenes sections of Portal 2.

To add a door, the easiest method is to create a func_instance with the VMF file instances/door/vertical_security_door.vmf.

For a simple door that opens when approached, create a brush overlapping the door, link to trigger_playerteam, and add these outputs:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnEndTouchAll door name instance:close_door;Trigger -- 0.00 No
Io11.png OnStartTouch door name instance:open_door;Trigger -- 0.00 No

You can use other types of trigger (e.g. a logic relay, a button) to control when the door opens.

Use the dropdown to explore other parameters; there are fast and close opens as well as a malfunctioning open.

An easy way to make the door one-way is to put your trigger on only one side of the door.