%roomGetExits()

Aliases%roomGetExits( )
Parameters[mixed @entity]

    This function returns an associative array of pointers to all the exits
currently in the given room. The list is indexed by the direction of the
exit (north, east, south, west, up, down). If no parameter is used, then
the room in which the script owner resides is used as default. The entity
may be one of the following: an explicit room number; a pointer to a room,
character, or object; a keyword for a mob, or object. If the entity is
valid then the room in which the entity resides will be searched.

Example:

@exits = %roomGetExits( @n )