One of my hero units has cloak as an ability, but he also has a validator that if he attacks cloak goes away. SO, I need to make it so that he doesn't auto attack hostile units next to him. I was playing around with the "hold fire" command that the ghost comes standard with but it seems that you have to use this each time you move with the ghost. Is there a way to make it so that my unit doesn't attack any units period without first issueing the attack command?
Give him a custom ability based off the default 'Attack' ability. The only thing you would need to do is goto Scan Filters and uncheck Enemy.
Pros: It's easy
Cons: While decloaked he will not auto-defend himself. He does not fire unless given an attack order.
A possible fix to this is give him the regular attack, but give it the requirement that it does not show if the cloak effect on. Then give him the custom attack ability and make it have the requirement that it does not show if the cloak effect is off.
In the Behavior tab of the Modification field for a buff behavior it's possible to enable the "Passive" state, which temporarily prevents the unit from acquiring targets. This is how the ghost's hold fire ability is implemented.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
One of my hero units has cloak as an ability, but he also has a validator that if he attacks cloak goes away. SO, I need to make it so that he doesn't auto attack hostile units next to him. I was playing around with the "hold fire" command that the ghost comes standard with but it seems that you have to use this each time you move with the ghost. Is there a way to make it so that my unit doesn't attack any units period without first issueing the attack command?
You could:
Give him a custom ability based off the default 'Attack' ability. The only thing you would need to do is goto Scan Filters and uncheck Enemy.
A possible fix to this is give him the regular attack, but give it the requirement that it does not show if the cloak effect on. Then give him the custom attack ability and make it have the requirement that it does not show if the cloak effect is off.
@Etravex: Go
Easiest way to fix this: Data Editor > Units > find your unit > (on the right side) Combat - Default Acquire Level (set it to Defensive)
He should then only attack if attacked.
In the Behavior tab of the Modification field for a buff behavior it's possible to enable the "Passive" state, which temporarily prevents the unit from acquiring targets. This is how the ghost's hold fire ability is implemented.