This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Eventlog and object description
#1
Hi!

I'm using the eventlog script from https://forum.logicmachine.net/showthread.php?tid=350 

Works fine!

But I'd want to log when doors and windows are opened/closed. Instead of having an event script on each object, I'm thinking of using a group tag. But is it possible to use the object description in the script? So I can write "Bedroom window" in the object description, and then use the grouptag script to write to the log "Bedrom window opened" or "Bedroom window closed" (and obviously the same for all other windows/doors..?)
Reply
#2
Use this:
Code:
obj = grp.find(event.dst)
log(obj.comment)
Reply


Forum Jump: