I'm trying to create a weapon that will behave akin to SC1 Valkyrie.
To specify, Valkyrie after attacking would launch a couple of missiles over time, even after ordering it to move in any direction. At the same time it didn't start attacking while on move command.
This way the unit will fire when in move command and faces the enemy unit even for a brief period of time when turning? I'll try it when I get back home but it's not the effect that I want.
What I want is a unit not starting to attack unless on attack move/hold positoon/target fire etc., but once the attack is initiated, the unit will still fire another sets of volleys (with a time between them) after it has been ordered to move.
So far I got the unit to fire 3 times with 0.5 delay between each set, through persistent effect, but it only does so if you leave it on attack command, as soon as you try to move it the attack is interrupted. The weapon cool down is 4.
So I want a unit that will fire it's missiles in quick succession even while moving but the attack itself be only initiated when attacking, not moving.
Persistent effects with long delays between each effect firing accomplishes this. The effects will still continue to fire even when the unit is moving, but will not initiate while they are moving like normal.
The Thor's AA, Battlecruiser's, and the Banshee's attacks are excellent examples of this.
Unfortunately, all of those persistent effects are interrupted once you order the unit to move. For example, if you modify Thor's persistent attack so it fires over a longer period, you can clearly see that if you order Thor to move, it will stop firing. Even with normal period values you can interrupt Thor's attack and waste the damage - which is one of the many reasons why Thors are not as microable as other units.
So I'm still looking for help with this one.
Edit: ok I was testing the Thor first, but I've modified some values for my unit as well and just checked how it behaves.
I've changed the weapon allowed movement to moving, set arc slop to 360 (while keeping arc at 0) and unchecked the "create persistent channeled" flag.
Not exactly sure which values actually allowed the effect I wanted, but it works.
I'm leaving it here for others who might be looking for something similar.
The Channeled flag was likely the issue as it requires the unit to continue doing the same ability in order to maintain the Create Persistent effect. If the unit is ordered to do anything else while the flag is enabled, the persistent effect is destroyed.