Why not reverse it, have the animation state control the airlock state? For example,
(pseudocode)
Code:IF(door_open_animation_value = 1.0) THEN crew.setairlockdoorstate(TRUE) ELSE crew.setairlockdoorstate(FALSE) END IF
Honestly not sure if you could have an airlock's state be open but not active, I've never tried it.
Yep, that's the thing to do.
Dan