<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://insultplayers.ru/killingfloor/w/index.php?action=history&amp;feed=atom&amp;title=Help%3ACreating_light_switches</id>
	<title>Help:Creating light switches - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://insultplayers.ru/killingfloor/w/index.php?action=history&amp;feed=atom&amp;title=Help%3ACreating_light_switches"/>
	<link rel="alternate" type="text/html" href="https://insultplayers.ru/killingfloor/w/index.php?title=Help:Creating_light_switches&amp;action=history"/>
	<updated>2026-09-07T11:16:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://insultplayers.ru/killingfloor/w/index.php?title=Help:Creating_light_switches&amp;diff=1787&amp;oldid=prev</id>
		<title>Maintenance script: Original wikitext recovered from the WikiTeam export dated 20150707; original revision 23226 and attribution retained</title>
		<link rel="alternate" type="text/html" href="https://insultplayers.ru/killingfloor/w/index.php?title=Help:Creating_light_switches&amp;diff=1787&amp;oldid=prev"/>
		<updated>2026-09-07T06:52:27Z</updated>

		<summary type="html">&lt;p&gt;Original wikitext recovered from the WikiTeam export dated 20150707; original revision 23226 and attribution retained&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{cleanup|, lots of cleanup. Like, seriously}}&lt;br /&gt;
Thanks Murphy    source[http://forums.tripwireinteractive.com/showthread.php?t=34471]&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
How to create a light that can be turned on that stays on for only a specified amount of time:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The TriggerLight has a variable called &amp;amp;quot;RemainOn&amp;amp;quot; which sounds like you could set a time there and it would turn itself off after that time, but it didn&amp;#039;t work like that when I tested it. I read it up on UDN and it said this only works with InitialState set to TriggerPound, but that didn&amp;#039;t work for me either (it stayed on indefinitely).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
So here is the more complicated way (if someone knows a shorter way, please post it!)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Place a TriggerLight. Change it&amp;#039;s lighting settings to your liking. &amp;lt;br /&amp;gt;&lt;br /&gt;
Change Object -&amp;amp;gt; InitialState to TriggerToggle.&amp;lt;br /&amp;gt;&lt;br /&gt;
Change Events -&amp;amp;gt; Tag to SwitchHit&amp;lt;br /&amp;gt;&lt;br /&gt;
(I used two of them in the example map. They are identical except one of them flickers. This just makes it look nicer)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Place a UseTrigger.&amp;lt;br /&amp;gt;&lt;br /&gt;
Change its Events -&amp;amp;gt; Event to HitSwitch&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Place a ScriptedTrigger (Keypoints -&amp;amp;gt; AIScript -&amp;amp;gt; ScriptedSequence -&amp;amp;gt; ScriptedTrigger)&amp;lt;br /&amp;gt;&lt;br /&gt;
In its properties, under AIScript, add the following Actions:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[0] Action_WAITFOREVENT&amp;lt;br /&amp;gt;&lt;br /&gt;
HitSwitch&amp;lt;br /&amp;gt;&lt;br /&gt;
[1] Action_TriggerEvent&amp;lt;br /&amp;gt;&lt;br /&gt;
SwitchHit&amp;lt;br /&amp;gt;&lt;br /&gt;
[2] Action_WAITFORTIMER&amp;lt;br /&amp;gt;&lt;br /&gt;
The time the light must stay on in seconds (I have 5 in the example map).&amp;lt;br /&amp;gt;&lt;br /&gt;
[3] Action_TriggerEvent&amp;lt;br /&amp;gt;&lt;br /&gt;
SwitchHit&amp;lt;br /&amp;gt;&lt;br /&gt;
[4] Action_Action_GOTOACTION 0&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This creates a switch for a light that only stays on for 5 seconds. You can turn it off with the switch at any time and you can turn it back on at any time, but it will only stay on for max 5 seconds.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Here is the example map:&amp;lt;br /&amp;gt;&lt;br /&gt;
http://www.mediafire.com/?u8j587sgg707ci6&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Category: Mapping]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;kf-restoration-note&amp;quot;&amp;gt;Original wikitext recovered from the WikiTeam export in the [https://archive.org/details/wiki-kf_wikicom archived KF-Wiki collection] (export 2015-07-07, original revision 23226). Credit: the original KF-Wiki contributors; the linked export preserves the original authorship and revision history.&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>