Okay so basically it's an ability that will automatically shoot any enemy, it has its own attack. This was prevalent in battleships and battletanks maps in WarCraft III.
How can I implement this in StarCraft II? Anyone found out how yet?
Do you want to make an ability that will automatically activate targeting the closest enemy?
You might be able to do something in the data editor, but It's definitely possible with triggers.
Might require some looping and detection, but I'm not exactly sure what you need. Can you be more descriptive please?
iv never done this but one way it should work is by creating a behavior with a periodic effect that an infinite period count. The effect would be a search and that search would have a damage or launch missile effect
Just create a weapon with the following flags UNchecked: Linked Cooldown, Only Fire at Attack Target, Only Fire while Attacking; and under the "Allowed Movement" make it "Moving." Then change the "Arc" to 360. Then add the weapon to the unit.
You'll have a weapon that will automatically fire at any unit that comes within range. And weapons are easy to enable/disable & show/hide via upgrade or add/remove via trigger.
The issue with creating a weapon is that it will select a target and then keep firing at that target until it is out of range or prevented by some other command or effect. You can also choose the target by issuing an attack order.
The Phoenix Fire ability in Warcraft 3 does not choose a target to focus on and you can't pick a target for it, it just shoots at anything in range. If you want it to work like this, you have to use a Search Area effect.
Oh I see, it has multiple targets then. A non-focusing weapon is doable, but if the OP wants multiple targets simultaneously, then yes a search area effect is probably best.
Okay so basically it's an ability that will automatically shoot any enemy, it has its own attack. This was prevalent in battleships and battletanks maps in WarCraft III.
How can I implement this in StarCraft II? Anyone found out how yet?
Do you want to make an ability that will automatically activate targeting the closest enemy? You might be able to do something in the data editor, but It's definitely possible with triggers. Might require some looping and detection, but I'm not exactly sure what you need. Can you be more descriptive please?
iv never done this but one way it should work is by creating a behavior with a periodic effect that an infinite period count. The effect would be a search and that search would have a damage or launch missile effect
gizmachu has it spot on, i did that a few weeks back and it worked perfectly, i used a launch missile as i like to see the projectiles-
@Iggyhopper: Go
Just create a weapon with the following flags UNchecked: Linked Cooldown, Only Fire at Attack Target, Only Fire while Attacking; and under the "Allowed Movement" make it "Moving." Then change the "Arc" to 360. Then add the weapon to the unit.
You'll have a weapon that will automatically fire at any unit that comes within range. And weapons are easy to enable/disable & show/hide via upgrade or add/remove via trigger.
@xenrathe: Go
The issue with creating a weapon is that it will select a target and then keep firing at that target until it is out of range or prevented by some other command or effect. You can also choose the target by issuing an attack order.
The Phoenix Fire ability in Warcraft 3 does not choose a target to focus on and you can't pick a target for it, it just shoots at anything in range. If you want it to work like this, you have to use a Search Area effect.
@MasterDinadan: Go
Oh I see, it has multiple targets then. A non-focusing weapon is doable, but if the OP wants multiple targets simultaneously, then yes a search area effect is probably best.
Behavior - Periodic - Period x seconds - Effect (Search) - Arc 360 - maximum count x (-1 for no limit) - Effect launch missile
It's not rocket science
Attachment: Added example