void main() { if (GetIsObjectValid(GetEnteringObject())&&GetIsPC(GetEnteringObject())) { object oObject; oObject=GetObjectByTag("jw_door_stone"); AssignCommand(oObject,SetLocked(oObject,FALSE)); //DelayCommand(20.0,AssignCommand(oObject,ActionCloseDoor(oObject))); //DelayCommand(20.5,AssignCommand(oObject,SetLocked(oObject,TRUE))); } }