Logic Machine Forum
Get group address from event script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Get group address from event script (/showthread.php?tid=537)



Get group address from event script - baggins - 04.01.2017

Hi,

Is it possible to obtain the group adress of an object from which an event script was triggered?

I have a number of objects that have the same tag and an event script triggered by the tag. When the scripts executes, I now check each object with an if ... elseif until I find the object.

It would be more elegant and possibly quicker if I could determine the object directly.

Thanks.


RE: Get group address from event script - Erwin van der Zwart - 04.01.2017

Hi,

Use event.dst

BR,

Erwin


RE: Get group address from event script - baggins - 04.01.2017

(04.01.2017, 13:03)Erwin van der Zwart Wrote: Hi,

Use event.dst

BR,

Erwin

Hello Erwin,

Is this documented somewhere? I looked at the documentation mentioned in the first post of this section but could not find it...

Thx

EDIT: OK, this was a case of just RTFM... Blush