__Bishop__ 0 Posted February 26, 2022 How to use commands on group of units/objects? For example, I created group of units Alpha 1-5 and set his name "kafegr". Now I can add attribute for all units of this group, for example, hideObject this; But how to use commands on this group outside attributes of this group? I tried to type in trigger following command: hideObject kafegr; but it don't work, so please help me, what I need to type in trigger to hide all units of this group when some player activates this trigger? And second question: how to add boolean? I tried to type: boolean boolk=false; in initialization block, but it don't work. Sorry for my bad english. Share this post Link to post Share on other sites
__Bishop__ 0 Posted February 27, 2022 I found solution: { hideObjectGlobal _x; } forEach units kafegr; But I still don't understand how to initialize boolean in Eden editor, I tried to type: boolean bool=true; or public boolean bool=true; but it don't work. Please help me with initializing boolean. Share this post Link to post Share on other sites
beno_83au 1369 Posted February 28, 2022 Why are you writing "boolean"? Just: myVar = true; It's already global then, and so is accessible by any other script on that client/server. If you need it to be communicated to other players then you will need to use publicVariable, or one of the other methods for broadcasting values across a network. Share this post Link to post Share on other sites