:setup

#set_global room6_visited true
#set_global r6_r_exit_locked false

> [!room6_visited]
	set_global room6_visited true
	set_global r6_r_exit_locked true
	# Show the closed door, hide the open one
	set_state r6_r_exit close_door
	stop

> [eq ESC_LAST_SCENE room5]
	teleport player r6_l_exit
	# Set player look right
	set_angle player 180
	stop
> [eq ESC_LAST_SCENE room7]
	teleport player r6_r_exit
	# Set player look left
	set_angle player 270
	stop
