What can we improve?

Documentation

(Edit)

IPS_SetEventTrigger

 boolean IPS_SetEventTrigger (int $EventID, int $TriggerVariableID) 

Parameters

EventID

ID of the event to be changed

TriggerVariableID

VariableID on whose change or update should be responded

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

This command configures a triggering event. It defines the observed variable TriggerVariableID and which TriggerType the event should react to.

Example

IPS_SetEventTrigger($EventID, 0, 12345);  //OnUpdate for variable 12345