<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=EDF_switch</id>
	<title>EDF switch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=EDF_switch"/>
	<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=EDF_switch&amp;action=history"/>
	<updated>2026-06-10T09:01:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://eternity.youfailit.net/index.php?title=EDF_switch&amp;diff=4304&amp;oldid=prev</id>
		<title>Printz: Created page with &quot;Switches can be defined in EDF. You can also define switches with ANIMDEFS or SWITCHES, but any new Eternity features will be added in EDF as they get developed.  They...&quot;</title>
		<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=EDF_switch&amp;diff=4304&amp;oldid=prev"/>
		<updated>2018-05-02T18:09:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Switches can be defined in EDF. You can also define switches with &lt;a href=&quot;/wiki/ANIMDEFS&quot; title=&quot;ANIMDEFS&quot;&gt;ANIMDEFS&lt;/a&gt; or &lt;a href=&quot;/wiki/SWITCHES&quot; title=&quot;SWITCHES&quot;&gt;SWITCHES&lt;/a&gt;, but any new Eternity features will be added in EDF as they get developed.  They...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Switches can be defined in EDF. You can also define switches with [[ANIMDEFS]] or [[SWITCHES]], but any new Eternity features will be added in EDF as they get developed.&lt;br /&gt;
&lt;br /&gt;
They have the following syntax:&lt;br /&gt;
 switch &amp;lt;name&amp;gt;&lt;br /&gt;
 {&lt;br /&gt;
   on &amp;lt;texture&amp;gt;&lt;br /&gt;
   sound &amp;lt;mnemonic&amp;gt;&lt;br /&gt;
   offsound &amp;lt;mnemonic&amp;gt;&lt;br /&gt;
   gameindex &amp;lt;number&amp;gt;&lt;br /&gt;
 }&lt;br /&gt;
==Explanation of fields==&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&amp;#039; field is the &amp;quot;off&amp;quot; texture of the switch, and is also used to identify the entry. Usually in Doom it has a name starting with SW1, like &amp;quot;SW1LION&amp;quot; in original Doom. The &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; field is the activated texture, starting in Doom usually with SW2, like SW2LION.&lt;br /&gt;
&lt;br /&gt;
You can also give sounds to switches. The &amp;#039;&amp;#039;&amp;#039;sound&amp;#039;&amp;#039;&amp;#039; field, if specified, lets you set a custom sound to a switch. In addition, you can set &amp;#039;&amp;#039;&amp;#039;offsound&amp;#039;&amp;#039;&amp;#039; if you want an alternate sound to go from the &amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039; texture back to the &amp;#039;&amp;#039;&amp;#039;name&amp;#039;&amp;#039;&amp;#039; texture.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Gameindex&amp;#039;&amp;#039;&amp;#039; is a compatibility setting from [[SWITCHES]] which declares if the switch is available for Doom shareware, Doom registered or Doom commercial. Not meaningful for mods, so you can ignore it.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
 switch SW1LEVER { on SW2LEVER  sound clank  offsound lvreset }&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
[[category:EDF]]&lt;/div&gt;</summary>
		<author><name>Printz</name></author>
	</entry>
</feed>