void main()
{
    ActionWait(15.0);   //wait fifteen seconds, then close and relock the door.
    SetLocked(OBJECT_SELF, TRUE);
}