void main() { object oDoor = GetObjectByTag("ty_puzzledoor2"); DelayCommand(20.0, ActionCloseDoor(oDoor)); DelayCommand(20.0, ActionLockObject(oDoor)); }