Jump to content
__Bishop__

Using commands on group in EDEN editor

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×