Phantasmal Site > Phantasmal API > API Listing > add_oneway_exit_between
API Function: add_oneway_exit_between
- Summary:
- Adds an exit between two existing
rooms
- Defined In LPC Object:
- /usr/common/sys/exitd.c
- Prototype:
- void add_oneway_exit_between(object room1, object room2, int direction,
int num1)
- Can Be Called By:
- System, Common, Game
- Description:
-
This function adds a one-way exit from room1 to room2.
Going from room1 to room2 occurs in the specified direction.
If num1 is positive, it is used as the exit number for the new
exit. If num1 is -1, the exit number is allocated on demand.
Num1 is 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_twoway_exit_between
|