Add robot.speed [R]
Posted: Tue Apr 01, 2025 1:40 pm
Hi
I would like the ability to read a robot's speed in order to determine if a robot is working or waiting / hovering for something such as;
- The inventory being full in a spidertron
- A player standing on a ghost entity it is trying to build
- Cases like where the robot is trying to build a train on top of a ghost rail that is just outside of construction range or does not have items to build it
If I could check robot.speed and observe it to be zero I would be well on the way to knowing that a robot is not active.
Prior to 2.0, code, I was checking every 90 ticks and tracking robot positions to see if they have moved, with the 2.0 bot optimizations that has been thrown out the window a little bit as it is less accurate given that robots update less frequently.
I would like the ability to read a robot's speed in order to determine if a robot is working or waiting / hovering for something such as;
- The inventory being full in a spidertron
- A player standing on a ghost entity it is trying to build
- Cases like where the robot is trying to build a train on top of a ghost rail that is just outside of construction range or does not have items to build it
If I could check robot.speed and observe it to be zero I would be well on the way to knowing that a robot is not active.
Prior to 2.0, code, I was checking every 90 ticks and tracking robot positions to see if they have moved, with the 2.0 bot optimizations that has been thrown out the window a little bit as it is less accurate given that robots update less frequently.