Go to documentation repository
...
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "CAM" && Event.Action == "MD_START")
{
var regionid;
if (Event.SourceId <=4)
{
regionid = "1";
}
if ((Event.SourceId > 4) && (Event.SourceId <= 10))
{
regionid = "2";
}
NotifyEventStr("REGION", regionid, "PANIC_LOCK", "");
} |