This is the basic tutorial to teach you how to link a switch to a door. So, when you hit a switch it will open a door. To view this map in Shadow Warrior download door4.zip
1. Create your door. We will use the door that we created in door1.map (Ceiling to Floor Door). You will recall our match tag for this door was 1.
![]() Fig 1. Inserting a switch sprite. |
2. Go to 3D mode (numeric pad Enter key toggles) and point the mouse cursor on the wall where you want the switch. Press "S" to insert the sprite. If the sprite for the switch you want to use did not appear point at the sprite and press "V" twice. The sprites for the switches are tiles (picnums) 551-584. Press "G" and enter 568 for our switch and press Enter to go to this sprite tile (picnum). Now press Enter and the sprite appears on the wall. You can click and hold on the sprite with the left mouse button and use the PgUp and PgDn keys to position the sprite's height on the wall. Release the mouse button when you are done. Since we assigned BOOL1 = 1 to our SECT_VATOR when we created our door in door1.map we must use the second switch tile (picnum) for the switch (trust me).
![]() Fig 2. Insert another switch sprite. |
3. We need to put a switch on the other side of the door so it can be opened from both sides. Insert the switch the same way it was done in step 2 above. For the sake of variety I put a different switch (picnum 574) on this side of the door.
![]() Fig 3. Insert two ST1 sprites. |
4. The ST1 sprite for the (SECT_VATOR Hitag 92) needs to have the TAG3 change from 0 to 1. To do this place the cursor on the SECT_VATOR sprite (2D mode), press ' and 3, enter a 1 and press Enter. Now the door will only operate by a switch with the same match tag (in our case 1). From the SPRITAGS.TXT file Section 3.3 give the switches a Lowtag of 206 and a Hitag of 1 (matching tag to SECT_VATOR Lowtag). To do this place the cursor on the sprite (2D mode) and press Alt-T enter 206. Now press Alt-H and enter 1. That's all there is to it.