Workshop - Step 14

# Step 14:
Build in multi-switches

| Overview
| Realization

Overview

### Overview

We want to create the switch in sector 0. The switch moves the door in sector 1.

Realization

### Realization

Open/Load sector 0 (CTRL-E). Create a new item in the upper left of the room, select (mark) the new created item and call the dialog for the attributes.

We have to set the attributes as shown below:

- The Type is set to a Switch.
- The switch should be a multi-switch, so please activate the checkbox Multi-switch type and set the type to Close and open door.
- There's no need to set an animation again. It's forbidden. The animation of the switch is taken from the animation of the predefined multi-switch.
- The value General/Type ist ignored for multi-switches.

- Set the height of the lower edge to 168 (40 pixel more than the floor height in this room).
- Set Angle to 64.
- Set Pick up diameter again to 64.

- The texture we have to set by hand to the first phase of the animation.
- We do not need the flag Masked, the switch is rectangular.

Keep the third tab Visibility deactivated.

You must set optional argument (additional argument) for some actions (items). The actions Open door and Close door need optional arguments.

- Slot 1 refers to the action Close door. The door in sector 1 should be closed, so put in here a 1.
- Slot 2 refers to the action Open door. Again put in here a 1 for sector 1.

Close the dialog using OK.

The door itself can be opened by the player by pressing Space in front of the door. If you want, that the switch is the only possibility to open and close, then you must:

- Load sector 1 using CTRL-E,
- set edit mode to doors and lifts,
- select the door by holding down the CTRL key and clicking with the left mousebutton onto the lines of the door.,
- call the popup menu with the right mousebutton,
- select the menu entry [Edit attributes],
- set Required item to open and close to Never getable item.

Please try to create the same multi-switch again in sector 2. This multi-switch also opens and closes the door in sector 1.

- Load sector 2,
- set the edit mode to Items and switches,
- create item (SHIFT and left mousebutton),
- select (mark) item (left mousebutton),
- call the popup menu (right mousebutton),
- select menu entry Edit attributes,
- set attributes as shown before.

Back | Home | Info | Concepts | Workshop | Reference | Next