LuaUnitGroup::state is supposed to return a member of defines.groupstate, which contains gathering = 0, moving = 1, attacking = 2. But I've seen this being 4 on occasion which seems to mean something like "can't reach position".
(Also Concepts.html#Command talks about defines.command.goto, this should be go_to_location)
[0.12.26] LuaUnitGroup::state returns undocumented value
[0.12.26] LuaUnitGroup::state returns undocumented value
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: [0.12.26] LuaUnitGroup::state returns undocumented value
Thanks for the report, I updated the values for 0.12.27 to this:
Edit: It shows go_to_location http://lua-api.factorio.com/0.12.26/def ... #inventory
Code: Select all
groupstate =
{
gathering = 0,
moving = 1,
attacking_distraction = 2,
attacking_target = 3,
finished = 4
}
Re: [0.12.26] LuaUnitGroup::state returns undocumented value
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: [0.12.26] LuaUnitGroup::state returns undocumented value
I see. That will be fixed in 0.12.27 as well.prg wrote:http://lua-api.factorio.com/0.12.26/Con ... ml#Command -> defines.command.goto
There it is.