I'm trying to have an ability that makes the casting unit move towards the closest unit. I have a search area of 3 (probably should be bigger) that looks for a unit, but I don't know how to make the unit move towards the closest unit. I have a move effect added but I don't know how to target the unit its supposed to move to.
Edit: Ok I figured it out, but now if the unit gets close to 2 units it kinda freaks out.
Use a target sort by distance and make the search only choose one target and then maybe use a leviathan like create persistent to lock onto a specific target?
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I'm trying to have an ability that makes the casting unit move towards the closest unit. I have a search area of 3 (probably should be bigger) that looks for a unit, but I don't know how to make the unit move towards the closest unit. I have a move effect added but I don't know how to target the unit its supposed to move to.
Edit: Ok I figured it out, but now if the unit gets close to 2 units it kinda freaks out.
@Demon4231: Go
I would suggest you trigger this.
@SouLCarveRR: Go
I got it to work, just needed to add a validator (Caster Has No Orders) so now he goes straight for the target without switching.
@Demon4231: Go
there might be a target sort thing that selects closer units first ... is that what you used?
@SouLCarveRR: Go
I just have a search with a radius of 500 and the unit automatically goes to the closest unit.
Use a target sort by distance and make the search only choose one target and then maybe use a leviathan like create persistent to lock onto a specific target?
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