Skip to content

Devices: Outputs

Mathieu Lomax edited this page Aug 8, 2019 · 4 revisions

Output Lamp

Output Lamp

I/O Num Type
In 0 bool

Changes sprite based on the input value.

NOTE: Although this is called a lamp, it produces no light.

Sprites

Flip/Flop

Flip/Flop

I/O Num Type
In 0 bool
Out 0 bool

Toggles a stored boolean value when the input toggles.

Settings

Trigger

Value Description
Exit Only Trips a wire when the value changes from True to False
Enter Only Trips a wire when the value changes from False to True
Enter and Exit Both of the above

Interaction

This device is the key to interacting with the vanilla wiring system. The device's function is perfectly suited to convert between WireMod's 'constant value' system and the vanilla 'electrical pulse' system.

See the Automatic Door Example for a simple use case using the default Enter and Exit trigger.

Trigger

I/O Num Type Name
In 0 bool Trigger
In 1 bool Reset
Out 0 bool

Settings

TriggerType

Value Description
All Triggers all connected devices
Sequential Triggers one connected device following the order in which they were connected
Random Triggers one connected device at random

This device output True for a single frame if the Trigger input is True and the device has been reset by setting the Reset input to True since the previous triggering.

Additionally, certain devices (e.g. Spawner) with a Trigger input are triggered according to the TriggerType setting.

NOTE: If the Reset pin is left disconnected, the device will reset every time the Trigger input is switched back to False.