module("EseSoundParamEmitter", package.seeall) -- Behavior function OnEntitySetFinished(selfID, strm) local property = BehaviorAPI.GetNextPropertyKey(selfID, "SoundParamProperties", "") while "" ~= property do local type = BehaviorAPI.GetProperty(selfID, "SoundParamProperties", property) if (type == "RTPC") then BehaviorAPI.LogMessage(2, "SoundParamEmitter: Registering "..tostring(property).." as a "..tostring(type)..".") epgmWwise.RegisterSoundParameter(selfID,property) elseif (type == "switch") then BehaviorAPI.LogMessage(2, "SoundParamEmitter: Registering "..tostring(property).." as a "..tostring(type)..".") epgmWwise.RegisterSoundSwitch(selfID,property) else BehaviorAPI.LogMessage(1, "SoundParamEmitter: Unrecognized type "..tostring(type).." for property "..tostring(property)..".") end property = BehaviorAPI.GetNextPropertyKey(selfID, "SoundParamProperties", property) end end