Vol.2 Introduction to Simple Devices: by Despot

Light Switches

Just linking a switch to light doesn't cut. Here are the steps to get a light to work with a On/Off lever or switch: Switch: Edit the properties of the switch archetype (NOT the concrete object), and look at Tweq>Joints: property. Make note of any JointXAnimC properties set with the Sim parameter. Now, edit the Tweq>JointStates: property of the concrete switch object (NOT the archetype). Any joints that had the JointXAnimC property set with the Sim parameter in the Tweq>Joints: dialog box need to be set with the On parameter. If the light will be off initially, set the Reverse parameter for the joints also. Now link the switch to the light with a ControlDevice link.

Light: If you are using a torch or one of the Old lights, ignore this section, unless you want your lights to be off initially. If you want the light to be off initially, for all types of lights, set the Mode property of Renderer>Anim Light to minimum brightness. For electric lights, edit the properties of the object and then edit the Light property. Set the brightness value to zero. Now, add the property Renderer>Anim Light. Be sure the maximum brightness is greater than 0, and greater than minimum brightness. Add the property S>Scripts. Type 'AnimLight (minus the quotes) in the first text field and click OK.

Recalculate lighting and enjoy!

Rotating Windows

The window objects are set up to work as a sliding windows, however, getting them to work as rotating windows takes a little work. Here's what you need to do:

Create a rotating door that makes the appropriate sounds. I used a Wood4x8. Next, add the property Shape>Model, and change the text to 'win4x8' minus the quotes. Click OK. If you want to use one of the other types of windows, find it in the object hierarchy, and use it's model name instead. Now, edit the Physics>Attributes property, and in the COG property, change the X value to 0 and the Y value to 2. In the Door>Rotating property, uncheck Blocks Vision and then re-portalise. That's it!

If you want to re-size your window, do the following before you re-portalise: Modify the size of window as desired. Be sure to edit the Physics>Dimensions property, and change the X, Y, and Z parameters to match the size of your window. In the Physics>Attributes property, tweak the Y value of the COG property until it the window opens and shuts correctly in-game. The size of the window and the value of the Y parameter of COG are directly proportionate; for example, a window half the default size will work with a Y value of 1. You will need to re-portalise every time you change the COG property. Area brushes will come in handy here if your level is a large one.

Travel to: Go Back / T-TC.com (home)