LuaGenericOnOffControlBehavior is incorrect

Place to report issues and suggest improvements to the API documentation.
ActionJackson
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sun Jul 24, 2016 6:00 pm
Contact:

LuaGenericOnOffControlBehavior is incorrect

Post by ActionJackson »

The documentation here is incorrect

https://lua-api.factorio.com/latest/cla ... _condition

There are 2 issues

- This is a RW signal, not just R
- The example is also incorrect

This does not work

Code: Select all

a_behavior.logistic_condition = {condition={
  comparator=">",
  first_signal={type="item", name="rail-chain-signal"},
  constant=4}
}
This does

Code: Select all

a_behavior.logistic_condition = {
  comparator=">",
  first_signal={type="item", name="rail-chain-signal"},
  constant=4
}
curiosity
Filter Inserter
Filter Inserter
Posts: 483
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: LuaGenericOnOffControlBehavior is incorrect

Post by curiosity »

Post Reply

Return to “Documentation Improvement Requests”