You can add a search effect to the default weapon. That will work like WC3 multishot, i.e. the weapon will hit up to 5 targets, but if there are less than 5 units in range the additional firepower is lost. Also you can't select the targets ingame. There's also a "prefer unmarked units" setup (a search validator/priority filter) which can be used to not waste the firepower.
If you want to allow manual selection of the targets you'll probably have to make an ability to "paint" targets, then make the weapon fire at all "painted" targets to a maximum of 5.
Or have a Create Persistent effect that uses 5x Search Area effects that target only one target. An alternative if to allow the weapons to attack targets other than the target of the attack ability and then make them use a target sort to choose random.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hello,
I want to create a battlecruiser with 5 laserbatteries, which shoot in different directions or choose random targets, if procurable.
with regards Queroloth
You can add a search effect to the default weapon. That will work like WC3 multishot, i.e. the weapon will hit up to 5 targets, but if there are less than 5 units in range the additional firepower is lost. Also you can't select the targets ingame. There's also a "prefer unmarked units" setup (a search validator/priority filter) which can be used to not waste the firepower.
If you want to allow manual selection of the targets you'll probably have to make an ability to "paint" targets, then make the weapon fire at all "painted" targets to a maximum of 5.
Or have a Create Persistent effect that uses 5x Search Area effects that target only one target. An alternative if to allow the weapons to attack targets other than the target of the attack ability and then make them use a target sort to choose random.
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
Sorry, but my English is not very good. Do you have some pictures explaining your ideas?