void main() { object oDoor = GetNearestObjectByTag ("crypt2exit"); SetLocked(oDoor,FALSE); AssignCommand (oDoor,ActionOpenDoor(oDoor)); }