Jump to content
Sign in to follow this  
fatty86

Trigger Condition: Distance Between Two Groups?

Recommended Posts

I am making a trigger for a rendezvous objective. I want it to fire when any unit from one group is within a certain range of any unit from another group.

So far I have tried

meu_agrp distance meu_bgrp <200;
but no luck, haven't seen any other threads on this either. Any ideas are greatly appreciated.

Share this post


Link to post
Share on other sites

Thanks Taurus. While waiting I discovered the "leader" variable. I came up with

leader (meu_agrp) distance leader (meu_bgrp) <50;
This seems to work pretty well. However, do you know if "leader" will always return the current active group leader? In other words, if the leader gets whacked on the way to the objective and leadership falls to another unit, will this still work?

Share this post


Link to post
Share on other sites

Yepp, and thats probably easier to type in too. :)

Sorry I'm getting tired.

Share this post


Link to post
Share on other sites

No worries, thanks a lot for your help, you are a gallant and selfless fellow :)

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  

×