HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Picking Units In Range

05-14-2006, 02:54 AM#1
MysticGeneral
I want to pick a unit within range of unit "EX". I only want 1 unit picked, and that unit has to be within 135 range of EX. EX also has to be facing that unit.

Is there an easy way to do this other than making multiple if/then conditions depending on the unit's facing angle? I currently got it to work, but it has an if/then condition for every 90 degrees...
05-14-2006, 05:05 AM#2
TaintedReality
You're just going to have to add all units within 135 to a unit group, then loop through them and with check who is the closest of units within the angles you choose.