PrizraK11 0 Posted February 4, 2024 Hi guys! I'm doing a patrol for the base, but I don't know how best to approach this issue from the point of view of the scenario Scheduler? Because: I want the patrol to ride continuously in circles around the base. That is, it requires constant creation of waypoints Question: Where is the best place to run this code? In Scheduler or non scheduler evnironment?And one more question on this topic: Where is the best place to using loops to check the condition, if I want to check postion player for example throughout his stay in the trigger ?Also important question: What is important to consider when writing this code from this point of view? Perhaps there are some priorities? Share this post Link to post Share on other sites
POLPOX 779 Posted February 5, 2024 Just use Cycle waypoint. There is no need to make WPs continuously. Scheduled or Non Scheduled is not a concern here because there is no reason to do such complex scripting. If you have a trigger and check if a player is in the trigger or not, just use trigger's condition. Non Scheduled: Pros: Will run within a frame anyways, not going to consume other scripts' process speed Cons: It cannot have a sleep Scheduled: Pros: Can have a sleep between execution, possible to execute something in a certain amount of time later, or continue as long as you need Cons: If you have a lot of Scheduled scripts, it can make every Scheduled scripts slower Share this post Link to post Share on other sites