Joris Olde Bijvanks

... UT3 and other Tutorials

  • Increase font size
  • Default font size
  • Decrease font size

Tutorial: Simple Light Switch

E-mail Print PDF
User Rating: / 2
PoorBest 

Simple Light Switch 

In this tutorial we will make a basic light switch with the use of Kismet.

First thing we need is a basic level. I've created a basic cube (1024x1024x512) and textured it with some nice WoW textures 

Second thing is to insert a player start (right-click Add Actor > Add Player Start) and place it in a corner

Third put in a lgiht point (right-click Add Actor > Add Light(point))
Select the Light bulb, by clicking it, move it to the right location (somewhere in the middle of your cube) and press F4. A new window opens called Pointlight_x Properties. Uder the tab "Light" click "LightComponent" and set the brightness to 0.05

Image 1 (Image 1)

After this we are going to make an area that triggers another lightbulb to switch on.
I have created another cube in the corner of my room. (64x64x16), textured it an put a lightpoint on top of it.
Select the second lightpoint, open up the tab "light" scroll all the way down untill you see "Radius". Change it from 1024 to 128. You should have something like in Image 2 now.

Image 2 (Image 2)

Right-click your screen and select Add Acotr > Add Trigger. Place the trigger on top of your small lightpoint.

Make sure your trigger is selected and open Kismet (big green K in your top menu bar) Right-clicksomewhere in the blank screen and select New Event Using Trigger_0 > Touch
This way the trigger is activated when you walk over it (touch it).

Right-click again and select New Action > Toggle > Toggle

Switch back to your main editor screen, right-click and select Add Recent > Add PointlightToggelable , and place it in the center of the screen (You may want to alter it's radius to cover the entire area)

Make sure it stays selected, and go back to Kismet. Right-click inside Kismet and select New Object Var Using PointLightToggleable_x

Drag a line from the purple square (target) from the Toggle object, towards the newly created variable
Also connect the Trigger object with the Toggle object as seen in Image 3

Image 3 (Image 3)

Last Updated on Tuesday, 23 June 2009 09:37  
Comments (1)
simple light switch tutorial
1 Tuesday, 23 June 2009 23:28
Steven C. Hellman
Love it ! Really great, Thanks !
Please register or login to add your comments to this article.

If you would like to make an online donation with your Credit Card or Paypal Account, please click the "Donate" button.  

Sponsored Links


Who's Online

We have 3 guests online

Sponsored Links