Jump to content
Sign in to follow this  
Psychopomp7781

Help with groups

Recommended Posts

I'm still relatively new with scripting, so maybe someone out there can help me.

What I'm doing is this, I've created three empty Fuel Urals which are to be destroyed. In each init field there is the following:

[truck1] join bait

[truck2] join bait

[truck3] join bait

[truck4] join bait

Now, I have my trigger which should set off the objective to be completed. I had thought that if my condition said this...

(not(alive bait))

... that it would register the group 'bait' as not alive, so it would then click off the objective.

Can anyone help me with this?

Thanks in advance...

Pomp

Share this post


Link to post
Share on other sites

Hi!

The Alive command is according to the official commandreference NOT capable of running on a group, only a soldier, vehicle or building. So you have to check each truck specifically, like this:

((!Alive truck1) && (!Alive truck2) && (!Alive truck3) && (!Alive truck4))

Thats all I can think of right now ... hope it helps!

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
Sign in to follow this  

×