-
Notifications
You must be signed in to change notification settings - Fork 2
Devices: Outputs
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.
I/O | Num | Type |
---|---|---|
In | 0 | bool |
Out | 0 | bool |
Toggles a stored boolean value when the input toggles.
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 |
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.
I/O | Num | Type | Name |
---|---|---|---|
In | 0 | bool | Trigger |
In | 1 | bool | Reset |
Out | 0 | bool |
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
.