Page 1 of 1

LuaGenericOnOffControlBehavior is incorrect

Posted: Tue Nov 19, 2024 10:51 pm
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
}

Re: LuaGenericOnOffControlBehavior is incorrect

Posted: Wed Nov 20, 2024 1:37 am
by curiosity