In this situation, please assume that the entity creator creates entities much faster than the server serves them, leading to the server getting to full capacity quickly after simulation start.
My question is this: I would like the server to start taking in entites until it reaches max capa. Then, it should not receive any new entities until it has served all entities and all entities have departed (so, no new entities should arrive until number of entites in block goes back to zero). Then it should fill up again until its full and so on. What I don't want is for 1 entity to arrive newly from the entity creator the instant that one served entity departs. The capa of the server should fill up to max and new arrival of entites to the server should be cut off until the server is completely empty again.
I can't figure out how create a mechanism like that. I tired a lot with entity gate blocks, but I can't get it to work. I would be thankful if someone could offer a solution.
Thanks in advance!