Prototype/FlyingRobot: Difference between revisions
(1.1.51: Prototype/EntityWithOwner added) |
(Updated styling of prototype doc migration note) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/prototypes/FlyingRobotPrototype.html https://lua-api.factorio.com/latest/prototypes/FlyingRobotPrototype.html] | |||
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div> | |||
{{Prototype parent|Prototype/EntityWithOwner}} | {{Prototype parent|Prototype/EntityWithOwner}} | ||
Abstract base for construcion/logistics and combat robots. | Abstract base for construcion/logistics and combat robots. | ||
Line 29: | Line 35: | ||
{{Prototype property|min_to_charge|[[Types/float|float]]|0.2|optional=true}} | {{Prototype property|min_to_charge|[[Types/float|float]]|0.2|optional=true}} | ||
The robot will | The robot will go to charge when it has less energy than this. | ||
{{Prototype property|max_to_charge|[[Types/float|float]]|0.95|optional=true}} | {{Prototype property|max_to_charge|[[Types/float|float]]|0.95|optional=true}} | ||
If the robot has more energy than this, it does not need to charge before stationing. | |||
{{Prototype property|speed_multiplier_when_out_of_energy|[[Types/float|float]]|0|optional=true}} | {{Prototype property|speed_multiplier_when_out_of_energy|[[Types/float|float]]|0|optional=true}} | ||
Some robots simply crash, some slowdown but keep going. 0 means crash. | Some robots simply crash, some slowdown but keep going. 0 means crash. |
Latest revision as of 10:43, 21 September 2023
The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/FlyingRobotPrototype.html
This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/FlyingRobot
Abstract base for construcion/logistics and combat robots.
Extensions
- Prototype/CombatRobot combat-robot
- Prototype/RobotWithLogisticInterface <abstract>
- Prototype/ConstructionRobot construction-robot
- Prototype/LogisticRobot logistic-robot
Mandatory properties
Inherits all properties from Prototype/EntityWithOwner.
speed
Type: double
Optional properties
max_speed
Type: double
Default: max double
The maximum speed of the robot. Useful to limit the impact of worker robot speed (research).
max_energy
Type: Energy
Default: 0
How much energy can be stored in the batteries.
energy_per_move
Type: Energy
Default: 0
How much does it cost to move 1 meter.
energy_per_tick
Type: Energy
Default: 0
min_to_charge
Type: float
Default: 0.2
The robot will go to charge when it has less energy than this.
max_to_charge
Type: float
Default: 0.95
If the robot has more energy than this, it does not need to charge before stationing.
speed_multiplier_when_out_of_energy
Type: float
Default: 0
Some robots simply crash, some slowdown but keep going. 0 means crash.