//Put this script OnOpen void main() { object oPC = GetLastOpenedBy(); if (!GetIsPC(oPC)) return; DelayCommand(3.0, ActionCloseDoor(OBJECT_SELF)); DelayCommand(3.0, SetLocked(OBJECT_SELF, TRUE)); }