defines.command.attack | | |
target | LuaEntity | |
distraction | defines.distraction (optional) | Defaults to defines.distraction.by_enemy. |
defines.command.go_to_location | | |
destination | Position (optional) | 目标 |
destination_entity | LuaEntity (optional) | 目标实体 |
distraction | defines.distraction (optional) | Defaults to defines.distraction.by_enemy. |
pathfind_flags | PathFindFlags (optional) | Flags to affect the pathfinder. |
radius | double (optional) | Distance from the exact target that the unit will consider itself “arrived” at. Default is 3. |
defines.command.compound | | |
structure_type | defines.compound_command | How the commands should be chained together. |
commands | array of Command | The sub-commands. |
defines.command.group | | |
group | LuaUnitGroup | The group whose command to follow. |
distraction | defines.distraction (optional) | Defaults to defines.distraction.by_enemy. |
use_group_distraction | boolean (optional) | Whether the unit will use the group distraction or the commands distraction. Defaults to true. |
defines.command.attack_area | | |
destination | Position | Center of the attack area. |
radius | double | Radius of the attack area. |
distraction | defines.distraction (optional) | Defaults to defines.distraction.by_enemy. |
| | |
defines.command.wander | | |
distraction | defines.distraction (optional) | Defaults to defines.distraction.by_enemy. |
radius | double (optional) | Defaults to 10. Does not apply when wander_in_group is true. |
wander_in_group | boolean (optional) | When commanding a group, defines how the group will wander. When true, the units in the group will wander around inside the group’s radius, just like gathering biters. When false, the units will wander as a group, ie they will all walk together in the same random direction. Default is true for groups. Passing true for a single unit is an error. |
ticks_to_wait | uint (optional) | Ticks to wander before successfully completing the command. Default is max uint, which means wander forever. |
defines.command.stop | | |
distraction | defines.distraction (optional) | Defaults to defines.distraction.by_enemy. |
ticks_to_wait | uint (optional) | Ticks to wander before successfully completing the command. Default is max uint, which means stop forever. |
defines.command.flee | | |
from | LuaEntity | The entity to flee from |
distraction | defines.distraction (optional) | Defaults to defines.distraction.by_enemy. |
defines.command.build_base | | |
destination | Position | Where to build the base. |
distraction | defines.distraction (optional) | Defaults to defines.distraction.by_enemy. |
ignore_planner | boolean (optional) | Whether the units should ignore expansion candidate chunks. When false, they will obey and not build a base in a non-candidate chunk. Defaults to false. |