void main() { object oDoor = OBJECT_SELF; DelayCommand( 6.0, ActionCloseDoor(oDoor) ); SetLocked( oDoor, TRUE ); }