<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl3%3ACommunity%3Aother%3Adoor-button-interaction</id>
	<title>Hpl3:Community:other:door-button-interaction - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=Hpl3%3ACommunity%3Aother%3Adoor-button-interaction"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl3:Community:other:door-button-interaction&amp;action=history"/>
	<updated>2026-05-15T10:53:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=Hpl3:Community:other:door-button-interaction&amp;diff=546&amp;oldid=prev</id>
		<title>Maintenance script: Upload from wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=Hpl3:Community:other:door-button-interaction&amp;diff=546&amp;oldid=prev"/>
		<updated>2020-07-09T13:43:47Z</updated>

		<summary type="html">&lt;p&gt;Upload from wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= How To Connect Doors With Buttons =&lt;br /&gt;
&lt;br /&gt;
This quick tutorial will show you how to create a door, that can be opened and closed via two buttons, that change their state, when pressed.&lt;br /&gt;
&lt;br /&gt;
== Step 1: ==&lt;br /&gt;
&lt;br /&gt;
Open the level-editor and create a map with a door and a button on each side of the door. I will call the door '''&amp;quot;door1&amp;quot;''' and the buttons '''&amp;quot;button1&amp;quot;''' and '''&amp;quot;button2&amp;quot;'''.&lt;br /&gt;
== Step 2: ==&lt;br /&gt;
&lt;br /&gt;
Click on '''button1''' and select '''Entity'''→'''Connections'''. There is the field '''&amp;quot;Connected Entities&amp;quot;'''. There you must write '''&amp;quot;door1, button2&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Do the same for '''button 2''', but here you write '''&amp;quot;door1, button1&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
You will see, that through this entry you change the state of the connected entities, when you interact with a button.&lt;br /&gt;
&lt;br /&gt;
== Step 3: ==&lt;br /&gt;
&lt;br /&gt;
Click on the door and select '''Entity'''→'''Internal State'''. Activate the box '''&amp;quot;Interaction Disabled&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Now your door can not be opend by player interaction. Only the connected buttons can open it.&lt;br /&gt;
&lt;br /&gt;
== Note: ==&lt;br /&gt;
&lt;br /&gt;
This will work with most doors, '''but there are doors in the game that require a script'''. For these you need to write a '''callback function''' and call it under both buttons '''Entity'''→'''Basic Callbacks'''.&lt;br /&gt;
&lt;br /&gt;
There is a field called '''&amp;quot;ConnectionStateChangeCallback&amp;quot;'''. Place your functions name there and it will be called whenever the button is pressed.&lt;br /&gt;
== What Button's Work? ==&lt;br /&gt;
&lt;br /&gt;
The buttons and switches can be accessed by selecting '''Entities''' in the '''Level Editor''' and by clicking '''Station'''→'''Panels'''.&lt;br /&gt;
&lt;br /&gt;
Experiment with different buttons to see which one is most suitable for your level. The most commonly used button in SOMA is '''theta_panel ''' and '''theta_panel_front'''. These are located in Entities, Station and Panels. Other doors like the '''Bulkhead doors''' from Upsilon would work well with the '''panel_large_inside''' button.&lt;br /&gt;
&lt;br /&gt;
== Sources: ==&lt;br /&gt;
&lt;br /&gt;
'''HPL3 Tutorials Part 3 Creating a Map''' - [https://www.youtube.com/watch?v=TGhwsa1k1LU https://www.youtube.com/watch?v=TGhwsa1k1LU]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
		
	</entry>
</feed>