Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.wire.adjustPorts

S๐Ÿท๏ธ Wire

Part of StarfallEx namespace

๐Ÿ”— External
wire.adjustPorts(inputs, outputs)
View on GitHub|lua/starfall/libs_sv/wire.lua:440
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 1 viewsUpdated 2 months ago

Description

Creates/Modifies wire inputs/outputs. All wire ports must begin with an uppercase letter and contain only alphabetical characters or numbers but may not begin with a number.

Parameters

NameTypeDescription
inputs?table(Optional) A key-value table with input port names as keys and types as values. e.g. {MyInput="number"} or {MyInput={type="number"}}. If nil, input ports won't be changed. If you use the latter syntax for defining ports, you can also specify description alongside the type, ex. {MyInput={type="number", description="Description for this input."}}
outputs?table(Optional) A key-value table with output port names as keys and types as values. The above behavior for inputs also applies for outputs.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.