Using triggers for doors