I`m trying to make a simple trigger that stops a unit from performing attacks. Should be something very simple to accomplish but it doesn`t seem to work:
Event:
Unit - Any Unit is attacked
Actions:
Unit - Order (Attacking Unit) to ( Stop) (Replace Existing Orders)
Tried that too, doesn`t work either. Tested it with default marauder and ghost units (noticed they have the ability called hold fire, thought it might change something)
You can just remove his weapon. "Unit - Remove weapon from unit".
I noticed the problem with the stop order, too, when I was trying to make a nice ammo system.
That could work, but I cannot find a variable of type 'weapon'. I don`t know how I will be able to add it back properly if my units use different weapons.
I`m trying to make a simple trigger that stops a unit from performing attacks. Should be something very simple to accomplish but it doesn`t seem to work:
Event: Unit - Any Unit is attacked
Actions: Unit - Order (Attacking Unit) to ( Stop) (Replace Existing Orders)
@malkavianVision: Go
Try using
Stop (Special) Hold Fire
Seemed to work for me when the other stop commands would not. Can't say why exactly.
Tried that too, doesn`t work either. Tested it with default marauder and ghost units (noticed they have the ability called hold fire, thought it might change something)
@malkavianVision: Go
You can just remove his weapon. "Unit - Remove weapon from unit".
I noticed the problem with the stop order, too, when I was trying to make a nice ammo system.
That could work, but I cannot find a variable of type 'weapon'. I don`t know how I will be able to add it back properly if my units use different weapons.
I found one way to solve the issue. Disabling the unit`s 'attack' ability works and is pretty elegant imo as you can just re-enable it later.
Maybe this solution will be useful to someone with similar problem.