Editing
Help:Creating light switches
From Killing Floor wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{cleanup|, lots of cleanup. Like, seriously}} Thanks Murphy source[http://forums.tripwireinteractive.com/showthread.php?t=34471] -------------------------------------------------------------------------------- How to create a light that can be turned on that stays on for only a specified amount of time:<br /> <br /> The TriggerLight has a variable called "RemainOn" which sounds like you could set a time there and it would turn itself off after that time, but it didn'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't work for me either (it stayed on indefinitely).<br /> <br /> So here is the more complicated way (if someone knows a shorter way, please post it!)<br /> <br /> Place a TriggerLight. Change it's lighting settings to your liking. <br /> Change Object -> InitialState to TriggerToggle.<br /> Change Events -> Tag to SwitchHit<br /> (I used two of them in the example map. They are identical except one of them flickers. This just makes it look nicer)<br /> <br /> Place a UseTrigger.<br /> Change its Events -> Event to HitSwitch<br /> <br /> Place a ScriptedTrigger (Keypoints -> AIScript -> ScriptedSequence -> ScriptedTrigger)<br /> In its properties, under AIScript, add the following Actions:<br /> <br /> [0] Action_WAITFOREVENT<br /> HitSwitch<br /> [1] Action_TriggerEvent<br /> SwitchHit<br /> [2] Action_WAITFORTIMER<br /> The time the light must stay on in seconds (I have 5 in the example map).<br /> [3] Action_TriggerEvent<br /> SwitchHit<br /> [4] Action_Action_GOTOACTION 0<br /> <br /> 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.<br /> <br /> Here is the example map:<br /> http://www.mediafire.com/?u8j587sgg707ci6<br /> [[Category: Mapping]] <div class="kf-restoration-note">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.</div>
Summary:
Please note that all contributions to Killing Floor wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Cleanup
(
edit
)
Template:LS
(
edit
)
Template:Language switch
(
edit
)
Template:Small
(
edit
)
This page is a member of a hidden category:
Category:Articles requiring clean-up
Navigation menu
Page actions
Help page
Discussion
Read
Edit
History
Page actions
Help page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information