Skip to content

unit_follow() causes on_ai_command_completed loop #2

@heyqule

Description

@heyqule

How to replicate

Select a group of unit and then right click on a friendly entity.

Issue

If I accidently click on a entity on the map mode. That triggers unit follow. Performance tanks once the group reach its destination. How heavy performance hit is relative to the group size, so large group takes heavier performance hit.

Point of interest in code

Factorio/mods/Unit_Control_0.3.11/script/unit_control.lua:1705
Factorio/mods/Unit_Control_0.3.11/script/unit_control.lua:1453

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions