FutureProg functions
installdoor
installdoor overload 1
Boolean installdoor(Exit exit, Item door, Location origin, Location destination)
Available in
- computer function
- computer program
- standard futureprog
Installs a door item onto an exit between two rooms, uninstalling it from any previous exit first. Returns false if the exit is null, the item is null, the item is not a door, or the exit already has a door.
| Parameter | Type | Description |
|---|---|---|
exit |
Exit |
The exit that should receive the door. |
door |
Item |
The item with a door component to install on the exit. |
origin |
Location |
The room on the hinge side; if null, the exit origin is used. |
destination |
Location |
The room on the opening side; if null, the exit destination is used. |