Entity open and close the door when crossing it.
register diagonal door edge.
Only open or close door if the door and the entity are in the same team.