home
about
maps
tutorials
1337 stuff
interviews
links
contact me

top.gif (199 bytes)


Making a button (lightswitch) - by Mazy

Hey, in this tutorial im going to teach you how to make a button, but also how to be able to use the button for different purposes. In this example I will make a button, which will switch on a light. Let's start!

First you have to make the button itself. Make it (32w, 8l, 32h) and I will use the "+0BUTTON3" texture in this example. Now make it an entity by selecting it and pressing Cntl-T. Now pick func_button from the dropdown menu. Now, go down to "Target", and type whatever you want, I will type "light1". Now you're made your button.

Note: In Worldcraft it defaultly makes the button move when you press it, which is kinda annoying if you ask me. To turn this off, just go into the properties of the button, and then Select "Flags" from the top of the properties window, and then click on the little box beside "Don't Move"

Now, create the light. Go to the properties of the light, and in "Name" you type what you typed in the Target of your button. I will therefore type "light1". And now you got yourself a button which will turn the light on and off.

2001 © Morten "Mazy" Hedegren