void main() { object oDoor = GetBlockingDoor(); if(GetIsDoorActionPossible(oDoor, DOOR_ACTION_OPEN)) DoDoorAction(oDoor, DOOR_ACTION_OPEN); }