This script is used as a OnAreaTransitionClick script of the door or as a OnUsed script of the placeable or secret door.
This should be used by all doors. If special handling is required use Hooks to modify the behavior of this script.
This function will do following things:
broken
is set.