I've got a unit with the ability to train units automatically, but once it starts moving it stops training units until it stops again. How do I fix this?
It's the Queue ability you need to check. It should have the "Passive" flag enabled if you want the unit to be able to move. Just look at the Protoss Carrier for an example.
Ok I found the issue. the Unit isn't casting the order while moving, but if their is units Queued up it will spawn just fine. is there any way to fix this?
I would guess it is because the unit already has a command (move), and the train ability requires the unit to not have an ability active to be casted. That is just my guess, I am not 100% sure. If you are just spawning a unit, I would recommend using an "effect - instant" or "effect - target" ability with the effect being "create unit". This way you can definitely cast while moving, or at least it will interrupt the movement instead of not casting at all.
Well as mentioned above, Carriers can train new Interceptors while moving.
Does training have a "Transient" flag? If not, you should be able to do kind of what TMS is suggesting and make an ability with a cast time and the "create unit" effect - just be sure to flag the ability as "Transient".
I've flagged it as 'Allow Movement' and 'Transient'. It won't interrupt movement but it won't be auto casted unless its not moving. the only Validator is 'Pathable'.
Edit:
Fixed it by changing Auto Cast Range from zero to 50.
I've got a unit with the ability to train units automatically, but once it starts moving it stops training units until it stops again. How do I fix this?
@Andytang14: Go
Your Ability->Stats->Flags
Check if "Allow movement" box is checked.
@Swifteg:
The Train Ability doesn't have "Allow Movement" Flag.
It's the Queue ability you need to check. It should have the "Passive" flag enabled if you want the unit to be able to move. Just look at the Protoss Carrier for an example.
I can't access the editor right now but i'm pretty sure my unit doesn't have a queue ability. The build time is 0.
That may be part of the problem. It may need a queue, even if the build time is 0.
I've Added Queue (1) and flagged it as passive and it still doesn't train while moving.
Ok I found the issue. the Unit isn't casting the order while moving, but if their is units Queued up it will spawn just fine. is there any way to fix this?
@Andytang14: Go
I would guess it is because the unit already has a command (move), and the train ability requires the unit to not have an ability active to be casted. That is just my guess, I am not 100% sure. If you are just spawning a unit, I would recommend using an "effect - instant" or "effect - target" ability with the effect being "create unit". This way you can definitely cast while moving, or at least it will interrupt the movement instead of not casting at all.
Great to be back and part of the community again!
@TacoManStan: Go
Well as mentioned above, Carriers can train new Interceptors while moving.
Does training have a "Transient" flag? If not, you should be able to do kind of what TMS is suggesting and make an ability with a cast time and the "create unit" effect - just be sure to flag the ability as "Transient".
@Chiquihuite: Go
I think that Carriers use an arm magazine, and never actually use a train ability. I could be very wrong though, I have never really looked into it.
Great to be back and part of the community again!
How do i add a cooldown?
I'm getting a 'must target unit' error.
it works at the start of the map then stops when i move the unit and won't work again.
Yes Carriers are Broodlords both use arm magazine.
I've flagged it as 'Allow Movement' and 'Transient'. It won't interrupt movement but it won't be auto casted unless its not moving. the only Validator is 'Pathable'.
Edit:
Fixed it by changing Auto Cast Range from zero to 50.