I only have my old example:
But I recommend to drive lift and observe, how the lift works. Make it in the same way in your model.
Eg. make for each level two global variables ( request up / request down). If a passenger enters the buffer --> check direction and set the right "button" to true...
This could be the next step.
If the response to your question is satisfactory, please do not forget to ‘Accept’ the solution.
Your Forum Administrator