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

CREATING A SWINGING DOOR

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

1. In 2D mode, create a red-line  sector for a door and raise it 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, 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!

3. Finish setting the triggers, keys, and busyTime/waitTime EFFECTS in the same 
dialog menu before pressing the left <Enter> return key to save your data.

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:

Type  617: Rotate

Trigger Flags:
x Interrupt

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

ON->OFF
busyTime= 20
wave: 1 Linear

Trigger On:
x wallpush

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. This is a bit confusing but you'll get 
the hang of it. Look at the swinging door  in MAP05: "Creating a Swinging Door".

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: 117
data2: 0
data3: 117
data4: 162

7. Save your work, and exit. You have created a swinging door!

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