type | :: defines.command | Type of command. The remaining fields depend on the value of this field. |
Type of command. The remaining fields depend on the value of this field. |
Other attributes may be specified depending on type
:
defines.command.attack
target | :: LuaEntity | |
distraction | :: defines.distraction? | Defaults to |
Defaults to |
defines.command.go_to_location
destination | :: MapPosition? | The position to path to. Either this or |
The position to path to. Either this or | ||
destination_entity | :: LuaEntity? | The entity to path to. Either this or |
The entity to path to. Either this or | ||
distraction | :: defines.distraction? | Defaults to |
Defaults to | ||
pathfind_flags | :: PathfinderFlags? | Flags that affect pathfinder behavior. |
Flags that affect pathfinder behavior. | ||
radius | :: double? | How close the pathfinder needs to get to its destination (in tiles). Defaults to |
How close the pathfinder needs to get to its destination (in tiles). Defaults to |
defines.command.compound
structure_type | :: defines.compound_command | How the commands should be chained together. |
How the commands should be chained together. | ||
commands | :: array[Command] | The sub-commands. |
The sub-commands. |
defines.command.group
group | :: LuaCommandable | The group whose command to follow. |
The group whose command to follow. | ||
distraction | :: defines.distraction? | Defaults to |
Defaults to | ||
use_group_distraction | :: boolean? | Whether the unit will use the group distraction or the commands distraction. Defaults to true. |
Whether the unit will use the group distraction or the commands distraction. Defaults to true. |
defines.command.attack_area
destination | :: MapPosition | Center of the attack area. |
Center of the attack area. | ||
radius | :: double | Radius of the attack area. |
Radius of the attack area. | ||
distraction | :: defines.distraction? | Defaults to |
Defaults to |
defines.command.wander
distraction | :: defines.distraction? | Defaults to |
Defaults to | ||
radius | :: double? | Defaults to 10. Does not apply when |
Defaults to 10. Does not apply when | ||
wander_in_group | :: boolean? | When commanding a group, defines how the group will wander. When |
When commanding a group, defines how the group will wander. When | ||
ticks_to_wait | :: uint? | Ticks to wander before successfully completing the command. Default is max uint, which means wander forever. |
Ticks to wander before successfully completing the command. Default is max uint, which means wander forever. |
defines.command.stop
distraction | :: defines.distraction? | Defaults to |
Defaults to | ||
ticks_to_wait | :: uint? | Ticks to wander before successfully completing the command. Default is max uint, which means stop forever. |
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 |
The entity to flee from | ||
distraction | :: defines.distraction? | Defaults to |
Defaults to |
defines.command.build_base
destination | :: MapPosition | Where to build the base. |
Where to build the base. | ||
distraction | :: defines.distraction? | Defaults to |
Defaults to | ||
ignore_planner | :: boolean? | Whether the units should ignore expansion candidate chunks. When |
Whether the units should ignore expansion candidate chunks. When |