Phantasmal Site > Phantasmal API > API Listing > add_twoway_exit_between
API Function: add_twoway_exit_between
- Summary:
- Adds an exit between two existing
rooms
- Defined In LPC Object:
- /usr/common/sys/exitd.c
- Prototype:
- void add_twoway_exit_between(object room1, object room2, int direction,
int num1, int num2)
- Can Be Called By:
- System, Common, Game
- Description:
-
This function adds a two-way exit from room1 to room2 and back.
Going from room1 to room2 occurs in the specified direction, and
from room2 to room1 in the opposite direction. If num1 and num2
are positive, they are used as exit numbers for the new exits.
If either is -1, that number is allocated on demand. The
parameters are usually left as -1 rather than specified when
new exits are allocated.
- Return Value:
-
None.
- Errors:
- If the parameters are invalid, or cloning or setting fields fails,
an error will occur.
- See Also:
- direction_by_string ,
remove_exit ,
add_oneway_exit_between
|