Enumerate Area validators are used for checking to see that there are at least some number of units nearby. So for example a Unit AI might use it to check that a certain spell would hit at least 3 units, and if so then the AI will cast it, otherwise it won't. It can also be used to enable or disable a behavior based on a number of units around, etc. The enumerate will find all units in the radius with the given angle, and another validator can be specified to limit the units it finds to a certain type, etc.
I'm not sure exactly how the angle works, but I assume that it should work at 90 degrees to find units in front. Perhaps it is determining the facing direction from another unit. It is possible that it uses absolute coordinates to determine the arc, but that is unlikely.
I believe the arcs are determined by absolute coordinates, as I remember having issues trying to use anything less than 360 also. I believe I ended up having to use triggers to find the exact facing angle in relation to the unit.
Its supposed to be a "dissable ground attack weapon" to a corruptor unit that is always orders to attack against 0° or 180°, i kinda wanted it to check in a 360° ate a 8 radius and then 90° 14 radius. That way it would scan in front of it instead of on the sides.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Arc in enumerate area, what does it do?
When i do a search area for 90° then it does not find any targets infront of the unit but 360° does, so what is the arc then ?
@Sherlia:
Enumerate Area validators are used for checking to see that there are at least some number of units nearby. So for example a Unit AI might use it to check that a certain spell would hit at least 3 units, and if so then the AI will cast it, otherwise it won't. It can also be used to enable or disable a behavior based on a number of units around, etc. The enumerate will find all units in the radius with the given angle, and another validator can be specified to limit the units it finds to a certain type, etc.
I'm not sure exactly how the angle works, but I assume that it should work at 90 degrees to find units in front. Perhaps it is determining the facing direction from another unit. It is possible that it uses absolute coordinates to determine the arc, but that is unlikely.
I believe the arcs are determined by absolute coordinates, as I remember having issues trying to use anything less than 360 also. I believe I ended up having to use triggers to find the exact facing angle in relation to the unit.
Else you could have used a buff that searches the arc infront of the unit that then applies a counter buff for what you need.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Its supposed to be a "dissable ground attack weapon" to a corruptor unit that is always orders to attack against 0° or 180°, i kinda wanted it to check in a 360° ate a 8 radius and then 90° 14 radius. That way it would scan in front of it instead of on the sides.