I am trying to create a "Machine Gunner" sort of unit that needs to be deployed before able to attack.
What is the best way to make an ability that makes the unit stationary when active, allowing it to attack, and being able to switch back? I've toyed with a few ways, like the morph ability that the Siege Tank uses, but I'm having trouble getting it to work still.
Create a buff behavior that disables move abilities and adds or enables the weapon you want. Then create a new "Behavior" type ability that gives the unit this behavior and enable the "Toggle" flag. Then give the unit this ability.