Go to documentation repository
Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.
Previous page Next page
The DoReactGlobal method is used to generate object reactions. The DoReactGlobal method transmits a reaction to the required object. The reaction is transmitted not only to the kernel, where the object is registered, but to the whole system. For the DoReactGlobal method the reaction is specified by the MsgObject object.
Method call syntax
function DoReactGlobal(msgevent : MsgObject)
Method arguments:
msgevent - required argument. It sets a reaction transmitted to the required object. It takes the following values: MsgObject objects created earlier in the script.
Example. When macro 2 starts, guard on Sensor 2. The command is to be transmitted to all system kernels as the reaction to be registered in the Events Log.
if (Event.SourceType == "MACRO"&& Event.SourceId == "2" && Event.Action == "RUN") { var msgevent = CreateMsg(); msgevent.SourceType = "GRAY"; msgevent.SourceId = "2"; msgevent.Action = "ARM"; DoReactGlobal(msgevent); }
Overview
Content Tools