BauerHeini Posted March 17, 2022 Share Posted March 17, 2022 Hallo, wie spreche ich mit LUA oder in der EV ein Objekt mit einem Schlagwort an? Grüße BauerHeini Link to comment Share on other sites More sharing options...
Goetz Posted March 17, 2022 Share Posted March 17, 2022 Hallo BauerHeini, dazu musst du eine Wiederholung benutzen. Du kannst ja nur alle Objekte mit diesem Schlagwort ansprechen. Viele Grüße Götz Link to comment Share on other sites More sharing options...
BauerHeini Posted March 17, 2022 Author Share Posted March 17, 2022 Hallo Goetz, genau das wars, funktioniert. Danke. Viele Grüße Heinz Link to comment Share on other sites More sharing options...
BauerHeini Posted March 17, 2022 Author Share Posted March 17, 2022 Ich habe das mal für mehrere Schlagwörter benutzt,... local t = {layout:getEntitiesByKeyword("NS"), layout:getEntitiesByKeyword("OW")} for i, Wdh in ipairs(t) do Wdh.state = 0 end ...das geht nicht, oder anders? Link to comment Share on other sites More sharing options...
Goetz Posted March 17, 2022 Share Posted March 17, 2022 (edited) Nein, das kann so nicht gehen, BauerHeini Du hast eine kleine Liste t gebaut, die nur zwei Elemente enthält. Jedes dieser beiden Elemente ist wiederum eine Liste (und die enthält die Objekte, welche du ansprechen willst). Das ergibt nicht das, was du erreichen möchtest. Viele Grüße Götz Edited March 17, 2022 by Goetz Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now