Go to documentation repository
...
| Code Block | ||
|---|---|---|
| ||
function SetObjectState(objtype : String, id : String, state : String) |
...
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "TIMER" && Event.SourceId == "1" && Event.Action == "TRIGGER")
{
if (GetObjectState("CAM", "1") == "DISARMED")
{
SetObjectState("CAM", "1", "ARMED");
}
} |