multisource Last edited 5 months ago2024-06-23 08:17:45 UTC

multisource - Point Entity

The multisource acts as an AND gate. It only triggers its targets if all entities targeting it are in the 'ON' state. It can also be used as a master (instead of actively triggering something when the conditions are met, events or entities using it as a master will only be able to function when the conditions are met).

In other words, the multisource can be used in 2 ways:
  1. As a way to activate something, only if an X amount of entities are already active (it can be 1 entity, 2, 3 or how many you wish to have). For instance: 3 buttons which have their targets set at a specific multisource, and when those buttons get activated, the multisource will activate a door (this is an example of course, the possibilities are endless).
  2. To unlock an entity, such as a door, or a button, again only if an X amount of entities are already active. For instance, if a door has its master parameter set to the name of the multisource, then that door will only unlock once that multisource gets activated in some way. Be aware though: If just 1 of those X amount of entities gets disabled (such as a button turning off), the multisource will turn off and the door (or anything else you have) will now be locked once again.

Attributes

Notes

Trigger setup table

The table below should help illustrate the state of the input as tracked by a multisource.
# Setup Odd-th triggering + wait Even-th triggering + wait Remarks
1 Buttons
1.1 button (w/wait) → ms 🟢ON 🔴OFF 🟢ON 🔴OFF Turns off when button resets ("pops out").
1.2 button (toggle) → ms 🟢ON* 🟢ON 🔴OFF 🔴OFF See note about bug every 3rd of 4 triggers.
1.3 button (toggle) → relay → ms 🟢ON 🟢ON 🔴OFF 🔴OFF The above bug fixed with a trigger_relay.
1.4 button (toggle) → ~relay* → ms 🔴OFF 🔴OFF 🟢ON 🟢ON trigger_relay triggered with trigger_auto at start of map.
1.5 button (w/wait) → mm ⇉ ~relay → ms 🔴OFF 🟢ON 🔴OFF 🟢ON ditto + multi_manager triggering the relay twice, with interval the same as the button's reset time.
2 Direct relays
2.1 relay (ON) ⇀ ms 🟢ON 🟢ON 🔴OFF 🔴OFF trigger_relay's trigger state is ignored.
2.2 relay (OFF) ⇀ ms 🟢ON 🟢ON 🔴OFF 🔴OFF ditto.
2.3 relay (Toggle) ⇀ ms 🟢ON 🟢ON 🔴OFF 🔴OFF ditto.
3 Relay + button_target
3.1 relay (ON) ⇀ button_target → ms 🟢ON 🟢ON 🟢ON 🟢ON Explicitly set value via button_target which only fires target when it itself changes state.
3.2 relay (OFF) ⇀ button_target → ms 🔴OFF 🔴OFF 🔴OFF 🔴OFF ditto.
3.3 relay (Toggle) ⇀ button_target → ms 🟢ON 🟢ON 🔴OFF 🔴OFF ditto.

1 Comment

Commented 7 years ago2017-11-22 23:16:25 UTC Comment #101116
In a nutshell:

Master properties expect a multisource name. A multisource acts as an on/off switch that you trigger to toggle your entity. If two entities target the multisource, both must be active at the same time for the multisource to work. (e.g.: two buttons).

You must log in to post a comment. You can login or register a new account.