0
Beantwoord

How to play sound on panel when received a specific feedback?

Luka Krcmar 6 jaar geleden bijgewerkt door Vladimir Ovchinnikov (expert) 5 jaar geleden 2

I've tried with this, but i don't even know if it's the right way:

IR.SetGlobalListener(IR.EVENT_GLOBAL_TAG_CHANGE, function(name, value)
{
if(value == 100){
IR.PlaySound('School_Fire_Alarm.wav',0,80);
}
});
IR.SubscribeTagChange("UI.ROOM1_Light Trigger (1) 2.Item 3");