I have a spell where the unit casts PDD and follows the unit around while shooting down projectiles.
I have gotten the PDD to follow the unit, however, I have a problem. When the PDD is first dropped it will shoot down enemy fire but whenever it moves, it will not attack again. I have it set to Allow Movement and have the Weapon - Options (Only Fire At Attack Target and Only Fire While Attacking) both unchecked. I've set the weapon arc to 360 degrees and even tried changing the turret but I can't get it to attack again. The Drone has energy still and I can't think of any other things to check. Ideas?
Here's a tricky way to do what you want. Make the PDD a missile weapon, and make a mover that always follows its target, but never hits it. Make your "summon PDD" ability a launch missile ability. The PDD will permanently seek the caster once cast. This will also allow it to use other abilities while moving.
I'm not so clear on how to use movers. I've tried to look for some info on it before as that was the first thing I looked at. I tried to imitate the Brood Lord and broodlings and noticed there was a special mover for the broodlings but couldn't figure out how they were associated to each other.
I only need the one ability for the PDD to shoot down incoming fire. Which it does. I was messing with some settings and I think I changed Allow movement on the weapon to "slowing" instead of "moving" Now what happens is I have my unit engage some vikings, I drop the PDD and it shoots down fire. If I move away slowly, short distances, the drone will follow and when it stops it will continue to shoot. If I drop the drone and then move into position of the vikings, it will not shoot.
I also have the test on some Hydras. Again, drop the drone and don't move and it will shoot down fire. Once I move, it will not continue to shoot down fire even when it comes to a rest. These two different scenarios occur with the same settings on the PDD.
I have discovered that the PDD will fire while moving but only when I select it and move it around. I still have the problem where it will not fire if I drop the drone and move; and it still will not attack again if I drop it, let it attack, move away and stop again.
I removed the Moveable flag, dropped a drone and kited some creeps to it and again, it would not fire once I had moved away. There must be some flag somewhere that causes the attack to disable once it follows me.
So this didn't occur to me until last night, but it appears that once my unit moves that the PDD would, in essence, return to hanger. And thus, as you say, would not be active until released again. To change this I changed the Hanger Ability. In Ability Commands - Arm Magazine there is a setting for Info - Manage that was set to recall. I changed this to ignore and now I have to completely control the drone on my own, but it will move and fire like a champ now.
Now I just need to find out how to make it follow the creating unit and I'd rather do this without a trigger if I could.
You could give the PDD a buff behavior, then give the main unit a behavior that periodically uses a search effect that applies a move order to units with the buff behavior (The PDD).
I have a spell where the unit casts PDD and follows the unit around while shooting down projectiles.
I have gotten the PDD to follow the unit, however, I have a problem. When the PDD is first dropped it will shoot down enemy fire but whenever it moves, it will not attack again. I have it set to Allow Movement and have the Weapon - Options (Only Fire At Attack Target and Only Fire While Attacking) both unchecked. I've set the weapon arc to 360 degrees and even tried changing the turret but I can't get it to attack again. The Drone has energy still and I can't think of any other things to check. Ideas?
@Vortexx2010: Go
Your problem is probably related to how you made it follow its owner. How did you do this?
@shardfenix: Go
I used a hanger ability for the unit.
@Vortexx2010: Go
Units in hangars aren't active until released.
Here's a tricky way to do what you want. Make the PDD a missile weapon, and make a mover that always follows its target, but never hits it. Make your "summon PDD" ability a launch missile ability. The PDD will permanently seek the caster once cast. This will also allow it to use other abilities while moving.
@shardfenix: Go
I'm not so clear on how to use movers. I've tried to look for some info on it before as that was the first thing I looked at. I tried to imitate the Brood Lord and broodlings and noticed there was a special mover for the broodlings but couldn't figure out how they were associated to each other.
I only need the one ability for the PDD to shoot down incoming fire. Which it does. I was messing with some settings and I think I changed Allow movement on the weapon to "slowing" instead of "moving" Now what happens is I have my unit engage some vikings, I drop the PDD and it shoots down fire. If I move away slowly, short distances, the drone will follow and when it stops it will continue to shoot. If I drop the drone and then move into position of the vikings, it will not shoot.
I also have the test on some Hydras. Again, drop the drone and don't move and it will shoot down fire. Once I move, it will not continue to shoot down fire even when it comes to a rest. These two different scenarios occur with the same settings on the PDD.
@Vortexx2010: Go
I have discovered that the PDD will fire while moving but only when I select it and move it around. I still have the problem where it will not fire if I drop the drone and move; and it still will not attack again if I drop it, let it attack, move away and stop again.
I removed the Moveable flag, dropped a drone and kited some creeps to it and again, it would not fire once I had moved away. There must be some flag somewhere that causes the attack to disable once it follows me.
So this didn't occur to me until last night, but it appears that once my unit moves that the PDD would, in essence, return to hanger. And thus, as you say, would not be active until released again. To change this I changed the Hanger Ability. In Ability Commands - Arm Magazine there is a setting for Info - Manage that was set to recall. I changed this to ignore and now I have to completely control the drone on my own, but it will move and fire like a champ now.
Now I just need to find out how to make it follow the creating unit and I'd rather do this without a trigger if I could.
You could give the PDD a buff behavior, then give the main unit a behavior that periodically uses a search effect that applies a move order to units with the buff behavior (The PDD).
@Aenigma: Go
Awesome, I'll try this out