module("EseSoundStateTriggerResponse", package.seeall) -- Behavior function OnTrigger(selfID, strm) local soundStateGroup = BehaviorAPI.GetProperty(selfID, "SoundStateGroup") local soundStateValue = BehaviorAPI.GetProperty(selfID, "SoundStateValue") BehaviorAPI.LogMessage(2, "SoundStateTriggerResponse.OnTrigger invoked, setting '" .. soundStateGroup .. "' to '" .. soundStateValue .. "'") if(soundStateGroup ~= nil and soundStateGroup ~= "") then if(soundStateValue ~= nil and soundStateValue ~= "") then epgmWwise.SetSoundState(soundStateGroup, soundStateValue) end end end