Will send TurnOn after having received a certain number of prior TurnOn messages. That is, every nth TurnOn will be relayed. The counter that tracks messages can be decremented by sending TurnOff. The trap itself does not send TurnOff messages.
Normally, there is a separate counter for each object that the script gets a TurnOn from. The global flag will count messages from all sources together.
Inherits | GenericTrap | |
---|---|---|
Parameters | threshold (integer) | Trigger after this many messages. |
initial (integer) | Start the counter at something other than 0. | |
floor (integer) | Minimum value the counter can reach. | |
global (boolean) | Use a single counter for all messages. |