User Tools

Site Tools


tnhscript:traprelayrepeat

TrapRelayRepeat

Relay TurnOn a repeated number of times with a delay between firings. By default, the relay will repeat indefinitely. The parameter repeat will limit how many times it fires. A negative value is the same as the default. TurnOff will halt the script. With autostart, the relay activates immediately without needing to be manually triggered.

Respects TrapControlFlag Once and NoOff.

Messages TurnOn, TurnOff
Links ControlDevice
Parameters interval (time) Delay between firings.
repeat (integer) Maximum number of times to fire.
autostart (boolean) Begin firing when the game starts.
tnhscript/traprelayrepeat.txt · Last modified: 2010/11/22 19:12 (external edit)