Search found 2 matches

by ja2
Mon Oct 19, 2020 11:32 am
Forum: Modding help
Topic: how to unset LuaConstantCombinatorControlBehavior signal?
Replies: 2
Views: 736

Re: how to unset LuaConstantCombinatorControlBehavior signal?

Ok, it turns out I wasn't actually passing the values i stated i passed to set_signal(). i had some construction like:

behavior.set_signal(n, {signal=signal, count=c})

and i assumed signal set earlier would be passed to set_signal() as is.
set_signal(n,null) works as expected. Thanks for helping ...
by ja2
Sun Oct 18, 2020 3:27 pm
Forum: Modding help
Topic: how to unset LuaConstantCombinatorControlBehavior signal?
Replies: 2
Views: 736

how to unset LuaConstantCombinatorControlBehavior signal?

How do I unset constant combinator signal? I tried using LuaConstantCombinatorControlBehavior.set_signal like this:

behavior.set_signal(n, nil)
behavior.set_signal(n, {})
behavior.set_signal(n, {type="item"})
behavior.set_signal(n, {type="item", name=""})

None of the above work, they all throw ...

Go to advanced search