A script that sends TurnOn and TurnOff messages to other objects.
Any script can be the recipient or sender of a message, and many do both. When a script is more likely to be the sender of a message than recipient, it is considered a trigger. Properties such as Trap Control Flags have different meanings for triggers than for traps.
Messages from a trigger are sent to objects linked with ControlDevice.
Messages sent from a trigger are modified by the Trap Control Flags property. When locked, as well as not sending any messages, the script will avoid side-effects such as setting properties.