EasyEB Posted February 24, 2017 Posted February 24, 2017 So, while I'm on fire with questions, I'll throw this one out aswell! Is it possible to have a flag set true when a unit of one group has line of sight to a specified enemy group? What I'm trying to do is get a message when group Blue1 has line of sight, and preferably is within a specified range to any unit of group Red1. To have them say "target aquired" or something equally as cool. Love you guys. Cheers!
IAF.AssafB Posted February 24, 2017 Posted February 24, 2017 So, while I'm on fire with questions, I'll throw this one out aswell! Is it possible to have a flag set true when a unit of one group has line of sight to a specified enemy group? What I'm trying to do is get a message when group Blue1 has line of sight, and preferably is within a specified range to any unit of group Red1. To have them say "target aquired" or something equally as cool. Love you guys. Cheers! Hi, MIST has a function exactly for this: mist.flagFunc.units_LOS (See http://wiki.hoggit.us/view/Units_LOS) If the units are in Line-Of-Sight and within a certain distance (and also some other parameters) it sets a flag true - and you can use this flag for any action (i,e MESSAGE TO ALL/ GROUP etc) HTH, Assaf.
Spades_Neil Posted February 27, 2017 Posted February 27, 2017 https://forums.eagle.ru/showthread.php?t=182337 might also help, except instead of detecting with RADAR, you're using VISUAL. However what I am TRYING to do is also a little different in that I am attempting to make it so radar will pick up any enemy to trigger a flag. I still haven't figured that out. :(
Recommended Posts