Jump to content

Sign in to follow this  
clydefrog

Trigger for 2 groups rendezvous

Recommended Posts

Sorry if this is some obvious thing but I can't find an answer that works anywhere. One of the tasks in my mission is a rendezvous point for 2 groups (on a mp coop mission). I want the trigger to recognise when preferably at least 1 member of each squad is in the area and it will complete the task. Any ideas? Thanks

Share this post


Link to post
Share on other sites

{_x in thisList} count yourGroup1 > 0 and {_x in thisList} count yourGroup2 > 0

;)

Share this post


Link to post
Share on other sites

Think it should be or and not and mate... to detect a dude from either group.

Share this post


Link to post
Share on other sites

If there should be one guy of each group in the the trigger (2 in summary) you will need an AND-condition.. otherwise the trigger is activated if only one guy is in there...

Share this post


Link to post
Share on other sites

You're right mate...I read it wrong! My bad.

Share this post


Link to post
Share on other sites
  Buliwyf said:
{_x in thisList} count yourGroup1 > 0 and {_x in thisList} count yourGroup2 > 0

;)

Thanks but I've just tried this and it doesn't work, I have in my condition:

{_x in thisList} count bravo1 > 0 and {_x in thisList} count bravo2 > 0

with the on act to complete the task, along with a piece of text to see if it triggered and it is set to blufor and present, nothing happens. I have bravo1 = group this for each group member of bravo1 and bravo2 = group this for each group member of bravo2.

Share this post


Link to post
Share on other sites
  F2k Sel said:
I think you'll find it's

{_x in thisList} count units bravo1 > 0 and {_x in thisList} count units bravo2 > 0

you should have received an error if not read this thread on how to enable error showing

http://forums.bistudio.com/showthread.php?121163-Script-not-working-Use-the-showScriptErrors-parameter!

I also tried this before and it didn't work either.

Share this post


Link to post
Share on other sites

Oh... my fault the unit-part was missing.. just tested and it works fine for me:

{_x in thisList} count units yourGroup1 > 0 and {_x in thisList} count units yourGroup2 > 0

Share this post


Link to post
Share on other sites
  Buliwyf said:
Oh... my fault the unit-part was missing.. just tested and it works fine for me:

{_x in thisList} count units yourGroup1 > 0 and {_x in thisList} count units yourGroup2 > 0

Hmm, wonder what the problem is then :/

What other settings do you have in your trigger?

Share this post


Link to post
Share on other sites

Try anyone present for trigger settings.

You only need the units for groups, leaving it out works for arrays

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Yeah I already tried with that, one thing that did work was :

"unitname" distance "objectname" <20 and "unitname" distance "objectname" <20

using the 2 squadleaders names as the unitnames but this isn't good enough as a squadleader may not be present when they arrive there, so it needs to be any groupmember. Also I can't get that code to work with group names instead of unit names. This thislist thing would be fine but I have no idea why it's not working.

Share this post


Link to post
Share on other sites

Are they in vehicles as that would be a little different

{vehicle _x in thisList} count units bravo1 > 0 and {vehicle _x in thisList} count units bravo2 > 0

It will still work for soldiers, at least for some of us.

Share this post


Link to post
Share on other sites
  F2k Sel said:
Are they in vehicles as that would be a little different

{vehicle _x in thisList} count units bravo1 > 0 and {vehicle _x in thisList} count units bravo2 > 0

It will still work for soldiers, at least for some of us.

No all on foot, I'll give it another try but don't know what's going on, I've definitely not typed the code wrong or anything.

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  

×