Difference between revisions of "Light switch tutorial"

512 bytes added ,  10:35, 15 April 2010
no edit summary
imported>Puf the majic dragon
(Added information regarding lighting bug)
imported>Darkness X
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Many users have requested information on setting up a light switch in the game. This tutorial explains in detail with screenshots how to set up a generic light switch which can easily be replicated throughout your mod with only one simple script.
Many users have requested information on setting up a light switch in the game. This tutorial explains in detail with screenshots how to set up a generic light switch which can easily be replicated throughout your mod with only one simple script.
{{Tools|req0=[[The Elder Scrolls Construction Set|Construction Set]]}}


== Create Your Switch ==
== Create Your Switch ==
Line 57: Line 58:


[[Image:Lighttutflamerender.jpg|thumb|right|A flame placed as a light source activated by the switch]]
[[Image:Lighttutflamerender.jpg|thumb|right|A flame placed as a light source activated by the switch]]
<pre>
Rather than duplicating your activator, you can place only one activator and then place an xmarker or any other object of your choice (even one of your lights). Parent your activator to the xmarker and modify the activator script to only enable/disable its parent. In the next section, you will need to parent all of your lights to the xmarker rather than the switch. There is no real advantage to either method, it's up to your personal preference.
</pre>
== Placing Your Lights ==
== Placing Your Lights ==


Line 79: Line 84:




[[Category:Getting Started]]
[[Category:World Objects]]
[[Category:Tutorials]]
[[Category:Tutorials]]
[[Category:Scripting_Tutorials]]
Anonymous user