================
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. When you first create your sector " Type 617 : Rotate " and fill in all your
data and hit it creates your pivot sprite. Normally you would drag your sprite 
into place and then align it using the " < " or " > " keys. BUT NOT WITH THE 
PIVOT SPRITES! Use the " [ " and " ] " keys instead (to turn your sprite up or 
down depending if you want your doors to swing open counter-clockwise or clockwise).
The " [ " and " ] " keys actually prevent the doors from "wrapping" 
through the walls (not a beautiful thing at all).

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)
