How to Get Sensor From Event on Trigger

Hello,

I have a question, but when I agree, the forum tells me: Sorry, you are not allowed to post external links. …

While I have no links…

I’m sorry, but I put my question in image …

[url=http://img607.imageshack.us/img607/9560/askhp.jpg]http://img607.imageshack.us/img607/9560/askhp.jpg[/url]

thank you very much

Unfortunately there is no easy way to get any information about the sensor that triggered the event. One really ugly solution is to parse the LuaUPnP log file and look around the [tt]Event::Evaluate[/tt] line. Another solution would be to add hooks to those variables and in the callback function store the information about the sensor in a state variable. But IIRC the scene code is executed before the hook callback, so I’m not sure if this solution will work.

Thank you for your clarification mcvflorin