Posted June 29, 2023 by BlackSandsStudios
Author: James Clarke
Posted on 6/29/2023
This week I decided to make the ordering system more organized in relation to the Customers. Issues I ran into while working on this were many. I ran into issues where the customers weren't able to "be in line". They would face towards the back of the line instead of the front and the last one would miss it's point to line up. The first customer would tend to stand still when they should of left after getting their order and would constantly order several different orders.
In order to get things working properly, I used the script for each of the line points that the customers use to line up to detect if one of the customers are hitting the trigger in order to make their order. This way I don't have to mess with the pathing of the customers and avoid issues related to the pathing. This also helps me keep the Customer Scripts from being super crowded by putting it in the script for each point for customers to line up.
Code used for solution using a list of each of the points.