fatty86 10 Posted July 26, 2009 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
Taurus 20 Posted July 26, 2009 I do believe you can find some useful information here: http://forums.bistudio.com/showthread.php?t=81638 Basically you can't check the distance between two groups. http://community.bistudio.com/wiki/distance Instead try (((units myGroup1) select 0) distance ((units myGroup2) select 0) < 200) Share this post Link to post Share on other sites
fatty86 10 Posted July 26, 2009 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
Taurus 20 Posted July 26, 2009 Yepp, and thats probably easier to type in too. :) Sorry I'm getting tired. Share this post Link to post Share on other sites
fatty86 10 Posted July 26, 2009 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