- Joined
- Aug 31, 2009
- Messages
- 778
To clarify the topic name, I have a problem involving Attack-Moving units and them casting spells.
In my map, there are units that are ordered to attack-move towards the enemy base, and they have a Holy Light type ability, allowing them to heal each other and other units.
The problem I have is that once the unit casts the Holy Light ability (of its own will, and standard AI, not by triggers) the unit will continue to engage units in its nearby vicinity then completely ignore the Attack-move command and run all the way back to its original spawn location.
I've tried adding a periodic trigger that picks out units with a "move" or "stop" order active and redirect them the correct way, but for some reason these caster units totally ignore that also.
I even put a test trigger in that outputs the current order of a selected unit into a Chat message, and when selecting one of these backward-moving casters, it simply says "attack" as though somehow they'd been redirected. Once they reach their destination (back at their spawn) their order is completely non-existant (i.e. nothing appears in chat).
Are there methods to counter-act units controlled by a Computer Player from moving back to their spawn locations after casting a spell in this manner, and continue attack moving?
In my map, there are units that are ordered to attack-move towards the enemy base, and they have a Holy Light type ability, allowing them to heal each other and other units.
The problem I have is that once the unit casts the Holy Light ability (of its own will, and standard AI, not by triggers) the unit will continue to engage units in its nearby vicinity then completely ignore the Attack-move command and run all the way back to its original spawn location.
I've tried adding a periodic trigger that picks out units with a "move" or "stop" order active and redirect them the correct way, but for some reason these caster units totally ignore that also.
I even put a test trigger in that outputs the current order of a selected unit into a Chat message, and when selecting one of these backward-moving casters, it simply says "attack" as though somehow they'd been redirected. Once they reach their destination (back at their spawn) their order is completely non-existant (i.e. nothing appears in chat).
Are there methods to counter-act units controlled by a Computer Player from moving back to their spawn locations after casting a spell in this manner, and continue attack moving?