I wouldn't suggest Cable's way there are much better alternatives.
func_door has the output onfullyopen/closed
onopen elevatorbuttons lock
onclose elevatorbuttons lock
onopen elevatordoors close
onclose elevatordoors close
onfullyopen elevatorbuttons unlock
onfullyclosed elevatorbuttons unlock
onfullyopen elevatordoors open
onfullyclosed elevatordoors open
tada
heres something I've bin working on for approximately 30min
possibly another onslaught map
Now I have to finish my late history paper about that dam riot in Libya and how it is related to the American constitution