Is there a way for me to write for example a "3" to several objects in one script? Se attatchment.
Let say I tag all the objects I want to adress with "Modus", and I want to write this if another object (Lets say 32/0/3) is "True".
This is wrong. You should add tag 'Modus' to object 32/1/10 and instead of the address in your script put a value you want to write. If you want to write to single object then use single command.
In the heading you write that you want all object with tag "Modus", to recive the value of "3" if (32/0/3) is True. If this is still what you want, then you can use this as Event-based script.
This sends the value "3" to all "Modus" taged objects, but only when 32/0/3 gets True.
Code:
value = event.getvalue()
objs = grp.tag('Modus')
if value == true then objs:write(3)
end