This is bothering me.
I can get the airlock to open/close. But when the Ummu opens the door I want the airlock to be open also. So if you press D the door opens and the airlock is open.
Crew.DefineAirLockShape(FALSE,-7,4,-5,3,-10,10); //airlock closed
if(key==OAPI_KEY_D&&!KEYMOD_SHIFT(kstate)&&!KEYMOD_CONTROL (kstate))
{
Crew.SetAirlockDoorState(!Crew.GetAirlockDoorState());
RevertDOOR();
//display state
if(Crew.GetAirlockDoorState()==TRUE)
strcpy(SendHudMessage(),"Airlock is now open");
else
strcpy(SendHudMessage(),"Airlock is now closed");
}
if(ActionAreaReturnCode==0)
{
RevertDOOR();
}