void main() { DelayCommand(3000.0, ActionCloseDoor(OBJECT_SELF)); DelayCommand(3001.0, ActionLockObject(OBJECT_SELF)); }