trefoilknot on 31/7/2019 at 13:13
Hi all,
Is there a way to abort a currently active relay trap? Suppose I frob a button, which sends TurnOn to a relay trap, which 5 seconds later sends TurnOn to something else (e.g., a teleport trap, or a door, etc...). Is there a way to abort during that 5 seconds? I'm looking for a solution that won't impair the functionality of the setup later. That is, you should be able to frob the button, abort, and then frob again later such that it works as intended.
Thanks!
Yandros on 31/7/2019 at 14:26
The astonishingly useful
NVRelayTrap has what you need:
Quote:
If you want to abort any messages that are still waiting to be sent when the trap is triggered again, use NVRelayTrapExclusiveDelay=1.
So if you use
NVRelayTrap instead of
TrapRelay and set that parameter, then sending the trap a
TurnOff before the
TurnOn has been sent will cancel the
TurnOn.
trefoilknot on 31/7/2019 at 14:40
Perfect! Thanks so much, you two!