Home

LuaDeciderCombinatorControlBehavior

Control behavior for decider combinators.

Parent

Attributes

parameters

This decider combinator's parameters. Writing nil clears the combinator's parameters.

valid

Is 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.

object_name

The 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.

Methods

get_condition

LuaDeciderCombinatorControlBehavior.get_condition(index: uint32) -> DeciderCombinatorCondition

Call As

deciderCombinatorControlBehavior.get_condition(index)

Call Convention

Gets the condition at index.

Parameters

Returns

set_condition

LuaDeciderCombinatorControlBehavior.set_condition(index: uint32, condition: DeciderCombinatorCondition)

Call As

deciderCombinatorControlBehavior.set_condition(index, condition)

Call Convention

Sets the condition at index.

Parameters

add_condition

LuaDeciderCombinatorControlBehavior.add_condition(condition: DeciderCombinatorCondition, index?: uint32)

Call As

deciderCombinatorControlBehavior.add_condition(condition, index)

Call Convention

Adds a new condition.

Parameters

remove_condition

LuaDeciderCombinatorControlBehavior.remove_condition(index: uint32)

Call As

deciderCombinatorControlBehavior.remove_condition(index)

Call Convention

Removes the condition at index.

Parameters

get_output

LuaDeciderCombinatorControlBehavior.get_output(index: uint32) -> DeciderCombinatorOutput

Call As

deciderCombinatorControlBehavior.get_output(index)

Call Convention

Gets the output at index.

Parameters

Returns

set_output

LuaDeciderCombinatorControlBehavior.set_output(index: uint32, output: DeciderCombinatorOutput)

Call As

deciderCombinatorControlBehavior.set_output(index, output)

Call Convention

Sets the output at index.

Parameters

add_output

LuaDeciderCombinatorControlBehavior.add_output(output: DeciderCombinatorOutput, index?: uint32)

Call As

deciderCombinatorControlBehavior.add_output(output, index)

Call Convention

Adds a new output.

Parameters

remove_output

LuaDeciderCombinatorControlBehavior.remove_output(index: uint32)

Call As

deciderCombinatorControlBehavior.remove_output(index)

Call Convention

Removes the output at index.

Parameters