How do i make a unit auto acquire all targets on the map? Say i want units to spawn at a location (DONE) and then i want them to attack all heroes on the map?
Depnds if you want to do it with a trigger or data. Data is IMO the better option. In data, make a weapon that does not appear on the unit's UI in game. This weapon has it's target filters set to "hero: required", and has a range of 500. Make sure the flags like "only attack target" and "disable while moving" (not sure if those are the exact names, but I think they are pretty close). If you want, make more weapons and then have a validator that makes sure the hero isn't already being attacked.
In triggers, simply pick each hero in the map and then issue an order to the unit to attack it. Make sure the weapon the unit has is the same as the above, with range to 500, only attacking heroes, etc.
Rollback Post to RevisionRollBack
Great to be back and part of the community again!
To post a comment, please login or register a new account.
How do i make a unit auto acquire all targets on the map? Say i want units to spawn at a location (DONE) and then i want them to attack all heroes on the map?
How to?
@Iamthecreeper: Go
Depnds if you want to do it with a trigger or data. Data is IMO the better option. In data, make a weapon that does not appear on the unit's UI in game. This weapon has it's target filters set to "hero: required", and has a range of 500. Make sure the flags like "only attack target" and "disable while moving" (not sure if those are the exact names, but I think they are pretty close). If you want, make more weapons and then have a validator that makes sure the hero isn't already being attacked.
In triggers, simply pick each hero in the map and then issue an order to the unit to attack it. Make sure the weapon the unit has is the same as the above, with range to 500, only attacking heroes, etc.
Great to be back and part of the community again!