I've got a unit with a weapon that I'd like to attack random targets each time instead of attack the same unit until it dies. Not necessarily a different target each time either, I'd like it to have the possibility of attack the same one twice in a row.
Can this be accomplished? I realize I could just do searches but I'd rather do it through weapons.
I tried this out quite a while, and I did not get random targets to work for a weapon, without adding a search effect, which searches for a random target
Make the weapon as normal. Add at the start of your weapon's effect, stick a search effect in there with the same radius as your weapon, your weapon's launch effect and a Target Sort - Random.
Result will be a weapon that searches for a random in-range target every time it attacks. Probably the cleanest way of doing this.
So heres the setup:
I've got a unit with a weapon that I'd like to attack random targets each time instead of attack the same unit until it dies. Not necessarily a different target each time either, I'd like it to have the possibility of attack the same one twice in a row.
Can this be accomplished? I realize I could just do searches but I'd rather do it through weapons.
Try the Weapon - Aquire Target Sorts - Sorts field and putting in TSRandom.
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
http://www.sc2mapster.com/forums/development/data/11074-1-beam-weapon-that-mutli-targets-solved/#p1
the basics. If you need more help, just search "Random Target"
I think he was specificly trying to avoid using a Search Area effect.
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
Quoted from this post.
http://www.sc2mapster.com/forums/development/data/17044-weapon-that-targets-random-unit-in-range/#p8
And unless something was changed since then... well.
Yeah, unfortunately my statement still stands. If anyone finds anything, let me know.
This does not seem to have any effect whatsoever.
Make the weapon as normal. Add at the start of your weapon's effect, stick a search effect in there with the same radius as your weapon, your weapon's launch effect and a Target Sort - Random.
Result will be a weapon that searches for a random in-range target every time it attacks. Probably the cleanest way of doing this.
@Eiviyn: Go
Ah yes, thank you Eiviyn. This accomplishes what I intended while still being able to use the weapon. Thanks everyone.