Documentation
IPS_SetEventTrigger
boolean IPS_SetEventTrigger (int $EventID, int $TriggerType, int $TriggerVariableID)
Parameters
EventID | ID of the event to be changed |
||||||||||||
TriggerType |
|
||||||||||||
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