Hi,
I am creating an elevator system where I have a single queue where the persons queue for the elevator regardless of the floor they are queuing at. So I would like to set the person into the queue, but keep their z coordinate as it was so I visually can see what floor they are waiting at. I want the person to be inside the queue so that I easily can get the statistics e.g. for the waiting time. I do not want a queue at each level as I only want the combined statistics for each elevator. Also I want to avoid visual clutter with queues at every floor (although a queue at each floor is acceptable if not possible otherwise)
I tried to do this using process flow by first using a travel to loc task to walk the person to the queue while staying at the floor (z coordinate) they are at, then move the person into the queue and then set the z coordinate to what it was before moving the person into the queue. The problem is that the code works nicely (the z coordinate is set and the person moves to the correct z coordinate) when I have a breakpoint in the code that sets the z coordinate. If I do not have a breakpoint the z coordinate is not set properly.
If I set a delay of say 1 second after the move and before the change visual activity in process flow then the code works correctly both when using and when not using the breakpoint. A zero second delay after the move does not work.
See the attached demo model that demonstrates the problem although it does not make any sense otherwise.
What am I missing here?
Thank you!
Kind regards,
Axel