================
A Control-Z Tutorial
================

CREATING A DOUBLE SWINGING DOORS

NOTE: Please refer to the 2swdoors.map in mapedit 2D  
mode in conjunction with this tutorial. 

1. In 2D mode, create 2 redline sectors for double doors and raise them to the desired height (in 3D mode with the <Page Up> key). 

IMPORTANT NOTE: Doors should be created  and left in the OPEN position.

2. In 2D mode, place your cursor over the redlines on both sides of each door, hold the left <Alt> key and press the <F6> key,  and enter the following:

TX ID: 118 (or a specific number of your choice)
CMD 3 : Toggle

x going on
x going off

x push

3. In 2D mode, hold the left <Alt> key and press the <F5> key to select a sector "Type" of "Rotate" in the Trigger/Channel dialog menu. 

WARNING: Do NOT select the "Swing door" type. It won't work!

NOTE: A new sprite control is automatically inserted (visible in 2D mode only) after pressing <Enter>. Set up your data menu according to the following in both doors:

Type  617: Rotate
RX ID : 118 (or a specific number of your choice that matches the red line number above)
CMD : 3 (ONE DOOR ONLY)
Trigger Flags:
x Interrupt

OFF->ON
x send at ON
busyTime = 10
wave: 1 Linear
x waitTime= 50

ON->OFF
x send at OFF
busyTime= 20
wave: 1 Linear

4. Place the control on the pivot  point of the sector.

5. Now, adjust the angle of the new sprite control to be the angle it needs rotate to OPEN from the CLOSED position using the ' [ ' and ' ] ' keys. NOTE: usually you use do the ' < ' or ' > ' keys to rotate sprites but do NOT use them for this particular procedure because they won't work.

6. To add sound effects, put  the SOUND SFX SPRITE # 2520 in the door sector
and set your sprite dialog ( hold left <Ctrl> and press <F6>) to the following:

data1: 101
data2: 0
data3: 100
data4: 160

7. Save your work, and exit. You have created double swinging doors!

====================================
Tutorials and Sample Maps by Control-Z
(Craig Duckett - Seattle, WA - June 19, 1997)