Aller au contenu

Messages recommandés

Posté(e)

DECLARATIONS (Conditions/Triggers)

 

{
    operator = "any",
    conditions = {
        -- tamper
        {
            id = 000,
            isTrigger = true,
            operator = "anyValue",
            property = "tamper",
            type = "device"
        }
    }  
}

 

ACTIONS

 

local trigger = sourceTrigger
print("property:"..trigger.property)
print("id:"..trigger.id)
print("type:"..trigger.type)
print("value:"..tostring(trigger.value))

 

  • Like 2
Posté(e)

Mise à jour de la déclaration suite à l'introduction de l'opérateur "anyValue" avec la version 5.030.45

 

Avant / Après pour l'exemple ;)

 

{
    operator = "any",
    conditions = {
        -- tamper
        {
            id = 000,
            isTrigger = true,
            operator = "anyValue",
            property = "tamper",
            type = "device",
            --value = true
        },
        --  {
        --     id = 000,
        --     isTrigger = true,
        --     operator = "!=",
        --     property = "tamper",
        --     type = "device",
        --     value = true
        -- }
    }  
}

 

  • Like 1
×
×
  • Créer...