Ok, thank you very much for the suggestions. I understand that an infinite loop can crash the processor.
In general, I'm working on a project where the client would like to have the ability to simulate an external wave in a five-story building. The only option that came to my mind is to create specific lighting scenes and trigger them in a loop with certain time intervals.