You could do it like this in the clbkPostStep. The docking light is now tied into the door status... This is from the HST code:
if (array_status >= DOOR_CLOSING) {
double da = simdt * ARRAY_OPERATING_SPEED;
if (array_status == DOOR_CLOSING) {
if (array_proc > 0.0) array_proc = max (0.0...