void main() { object oPC = GetEnteringObject(); object oTarget; oTarget = GetObjectByTag("wp_tabmind_04"); AssignCommand(oTarget, ActionOpenDoor(oTarget)); DelayCommand(3.0,AssignCommand(oTarget, ActionCloseDoor(oTarget))); }