Arzok Posted January 24, 2009 Share Posted January 24, 2009 Please, I would like to know this subtility ! SET @flag = UnitsIsVisible ( ARMY , 1 , GROUP , “Group” , ALL ) Who is visible for whom ? Is "army 1" visible for "group" of the opposite ? Or is it apply to each other ? Link to comment Share on other sites More sharing options...
Gnasher Posted January 24, 2009 Share Posted January 24, 2009 You need to setworkarmy first, then it's for whichever army you set. I your example it looks as though that is for the opposing force spying on you. Link to comment Share on other sites More sharing options...
Gnasher Posted January 24, 2009 Share Posted January 24, 2009 So the code I imagine would read something like this:- SetWorkArmy ( Army , 2 ) SET @flag = UnitsIsVisible ( ARMY , 1 , GROUP , “Group” , ALL ) if ( @flag = "TRUE" ) then do_something_because_they_can_see_you endif Link to comment Share on other sites More sharing options...
Arzok Posted January 24, 2009 Author Share Posted January 24, 2009 Thank you ! I have not think that "setworkarmy" can fixe which army is seeing ! I will try ! Link to comment Share on other sites More sharing options...
Arzok Posted January 29, 2009 Author Share Posted January 29, 2009 SetWorkArmy ( ARMY , 1 ) SET @flag = UnitsIsVisible ( army , 1 , unit , @unit , all ) If the flag is true, it means that a soldier of the army 1 can see the soldier "@unit" of the army 2 Army one is the player. So I can make a trigger that stop for a while the move and the fire of an IA unit. So it disapears, then after 10 seconds, the IA soldier continue is movement. I hope that with this kind of trigger, the approach of the IA will be almost indetectable ! Link to comment Share on other sites More sharing options...
Recommended Posts