However, it turns out that the parameters field is a table with a single field ALSO called "parameters", which has type ConstantCombinatorParameters.
The following is an excerpt from a mod I am creating, which demonstrates the issue.
Code: Select all
local b = combinator.get_or_create_control_behavior()
newParams = <...> // :: ConstantCombinatorParameters (as per docs, an array of {signal, count, index} )
b.parameters = {parameters = newParams} // <-- This line
Code: Select all
b.parameters = newParams