Have two variable on the door object which is the ID of the door to teleport to and also its own ID.
Put the teleport event inside a function something like, pick door where door.ID=param : set position to door
Then call the function when you overlap a door, pass as the param the door you are going to