TL;DR
Better documentation of the LuaControl field "character_maximum_following_robot_count_bonus" in the LuaControl API page, and if it is relevant have a "maximum_following_robot_count_bonus" field that could be used on any kind of entity.What ?
The LuaControl field "character_maximum_following_robot_count_bonus" needs to be called on an object that is associated with a character, but from a script, I can create combat robots and by setting the source parameter, make them follow a standard entity (let's say a vehicle):Code: Select all
surface.create_entity({
name = "defender-capsule",
force = source_entity.force,
source = source_entity, -- my vehicle
...
My suggestion: better documentation of this field in the LuaControl API page, and if it is relevant have a "maximum_following_robot_count_bonus" field that could be used on any kind of entity and share the same value for characters or totally replace the field (which will breaks some mods).
Why ?
Because robots can follow a vehicle, I feel like it would be more coherent to also have this field for entity others than player / character.And because I was unable to understand what this field is for !