So i have this unit (a tower) that has 3 weapons and they all fire at the same time. My question is how do i force the weapons to target different units? I do not want to let them attack the same unit. The finished unit should fire 3 projectiles at the same time targeting different units.
I've seen some thread on how to have 1 weapon then a search effect that uses maximum count, but i havnt figured that out. also theres something about markers and validators: no markers but its so tricky figuring out how it works.
Do these weapons do the same thing or are they functionally different?
As you stated one option is to put a Search Area effect with a maximum count under the Effect: Effect field of the weapon and the rest of the weapon effect tree under the Search: Areas - Effect field of the Search Area effect.
Alternatively disable the Only Fire At Attack Target flag under the Weapon: Options field of the weapon, inset a Set effect that has an Apply Behavior effect just before the weapon Damage type effect and use a Unit Compare Behaviour Count type validator added to the first effect used by the weapon. You then set the Buff type behaviour to have a low duration and be counted by the validator.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
So i got the search area working now with having 1 weapon attached to the unit that fires at 3 targets. however, i have some problems.
- The 2 additional attacks can target friendly units, like another tower nearby or my builder. OR if the tower is within the radius i specified it will hit itself with.
1. How do i set the radius of the search area effect to be centered at the caster unit instead of searching around the unit it targets. How do i remove friendly targets from the search effect? the main attack can not hit friendlys although the 2 extra attacks can.
EDIT: Nevermind i found the settings, on the search area effect i did this - Search: Search Filters untick Player, ally, neutral and exclude self. - Still does not know how to center the search for additional targets at center of caster.
to clarify what the problem is: ive made a test in the map where i placed 2 units on the opposite side of where the tower should be. so 1 unit is 10 yards above the tower. and the other is 10 yards below the tower. which means that if the search area happens at the center of the target unit, it will not reach the other unit when searching for additional targets. Which is the reason i want to have the search centered at the caster because then it could target 2 or 3 units that are spread out 10 yards away from the tower at any angle. Here's a picture of the problem.
yes, i unticked it now but it still does not target correctly.
EDIT: i checked the "Center at launch" box and it works now which makes sense because what i believe it does is centers the search area radius to the center of launch position (caster unit), correct me if im wrong.
So i have this unit (a tower) that has 3 weapons and they all fire at the same time. My question is how do i force the weapons to target different units? I do not want to let them attack the same unit. The finished unit should fire 3 projectiles at the same time targeting different units.
I've seen some thread on how to have 1 weapon then a search effect that uses maximum count, but i havnt figured that out. also theres something about markers and validators: no markers but its so tricky figuring out how it works.
Do these weapons do the same thing or are they functionally different?
As you stated one option is to put a Search Area effect with a maximum count under the Effect: Effect field of the weapon and the rest of the weapon effect tree under the Search: Areas - Effect field of the Search Area effect.
Alternatively disable the Only Fire At Attack Target flag under the Weapon: Options field of the weapon, inset a Set effect that has an Apply Behavior effect just before the weapon Damage type effect and use a Unit Compare Behaviour Count type validator added to the first effect used by the weapon. You then set the Buff type behaviour to have a low duration and be counted by the validator.
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
In reply to DrSuperEvil:
- The 2 additional attacks can target friendly units, like another tower nearby or my builder. OR if the tower is within the radius i specified it will hit itself with.
1. How do i set the radius of the search area effect to be centered at the caster unit instead of searching around the unit it targets. How do i remove friendly targets from the search effect? the main attack can not hit friendlys although the 2 extra attacks can.
EDIT: Nevermind i found the settings, on the search area effect i did this
- Search: Search Filters untick Player, ally, neutral and exclude self.
- Still does not know how to center the search for additional targets at center of caster.
Under the Search: Search Flags field of the Search Area effect is the Offset By Unit Radius flag enabled?
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
In reply to DrSuperEvil:
EDIT: i checked the "Center at launch" box and it works now which makes sense because what i believe it does is centers the search area radius to the center of launch position (caster unit), correct me if im wrong.