Control behavior for decider combinators.
LuaCombinatorControlBehaviorDeciderCombinatorParametersDeciderCombinatorParameterstrueThis decider combinator's parameters. Writing nil clears the combinator's parameters.
booleanunknownfalseIs this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
stringunknownfalseThe class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
LuaDeciderCombinatorControlBehavior.get_condition(index: uint32) -> DeciderCombinatorCondition
deciderCombinatorControlBehavior.get_condition(index)
takes_table: falsetable_optional: falseGets the condition at index.
index: uint32 — Index of condition to get.DeciderCombinatorConditionLuaDeciderCombinatorControlBehavior.set_condition(index: uint32, condition: DeciderCombinatorCondition)
deciderCombinatorControlBehavior.set_condition(index, condition)
takes_table: falsetable_optional: falseSets the condition at index.
index: uint32 — Index of condition to modify.condition: DeciderCombinatorCondition — Data to set selected condition to.LuaDeciderCombinatorControlBehavior.add_condition(condition: DeciderCombinatorCondition, index?: uint32)
deciderCombinatorControlBehavior.add_condition(condition, index)
takes_table: falsetable_optional: falseAdds a new condition.
condition: DeciderCombinatorCondition — New condition to insert.index?: uint32 — Index to insert new condition at. If not specified, appends to the end.LuaDeciderCombinatorControlBehavior.remove_condition(index: uint32)
deciderCombinatorControlBehavior.remove_condition(index)
takes_table: falsetable_optional: falseRemoves the condition at index.
index: uint32 — Index of condition to remove.LuaDeciderCombinatorControlBehavior.get_output(index: uint32) -> DeciderCombinatorOutput
deciderCombinatorControlBehavior.get_output(index)
takes_table: falsetable_optional: falseGets the output at index.
index: uint32 — Index of output to get.DeciderCombinatorOutputLuaDeciderCombinatorControlBehavior.set_output(index: uint32, output: DeciderCombinatorOutput)
deciderCombinatorControlBehavior.set_output(index, output)
takes_table: falsetable_optional: falseSets the output at index.
index: uint32 — Index of output to modify.output: DeciderCombinatorOutput — Data to set selected output to.LuaDeciderCombinatorControlBehavior.add_output(output: DeciderCombinatorOutput, index?: uint32)
deciderCombinatorControlBehavior.add_output(output, index)
takes_table: falsetable_optional: falseAdds a new output.
output: DeciderCombinatorOutput — New output to insert.index?: uint32 — Index to insert new output at. If not specified, appends to the end.LuaDeciderCombinatorControlBehavior.remove_output(index: uint32)
deciderCombinatorControlBehavior.remove_output(index)
takes_table: falsetable_optional: falseRemoves the output at index.
index: uint32 — Index of output to remove.