multisource Last edited 5 months ago2024-06-23 02:28:43 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.

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 tracked by a multisource.
Setup Odd-th triggering + wait Even-th triggering + wait Remarks
Buttons
button (w/wait) → ms 🟢ON 🔴OFF 🟢ON 🔴OFF Turns off when button "pops out".
button (toggle) → ms 🟢ON* 🟢ON 🔴OFF 🔴OFF See note about bug every 3rd of 4 triggers
button (toggle) → relay → ms 🟢ON 🟢ON 🔴OFF 🔴OFF The above bug fixed with a trigger_relay
button (toggle) → ~relay* → ms 🔴OFF 🔴OFF 🟢ON 🟢ON trigger_relay triggered with trigger_auto at start of map.
Direct relays
relay (ON) → ms 🟢ON 🟢ON 🔴OFF 🔴OFF trigger_relay's trigger state is ignored.
relay (OFF) → ms 🟢ON 🟢ON 🔴OFF 🔴OFF
relay (Toggle) → ms 🟢ON 🟢ON 🔴OFF 🔴OFF
Relay + button_target
relay (ON) → button_target → ms 🟢ON 🟢ON 🟢ON 🟢ON
relay (OFF) → button_target → ms 🔴OFF 🔴OFF 🔴OFF 🔴OFF
relay (Toggle) → button_target → ms 🟢ON 🟢ON 🔴OFF 🔴OFF

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.