Go to documentation repository
Page History
...
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "GRELE" && Event.SourceId == "1" && Event.Action == "ON")
{
if(GetObjectState("GRAY", "1")=="DISARM")
{
SetObjectState("GRAY", "1", "ARM");
}
else
{
SetObjectState("GRAY", "1", "DISARM");
}
} |
| Info | ||
|---|---|---|
| ||
Some objects have several states at the same time. For example: ATTACHED | DISSOLVED or ADDED | OFF | RECORDER_ON | RECORD |
Overview
Content Tools