I am trying to set up some of the weapons to have an 'attack ground' command. This would mostly be used for blast weapons, allowing them to keep pounding on one specific area.
The weapon should behave like a normal weapon, but I want to be able to re-target the weapon to fire at a specific location on the ground off a button. I would guess the closest example is raynor/tychus's shredder grenade from the campaign, but I need to modify it to work with whatever weapons the unit is currently using. I also need it to fire at that spot continuously until the unit is given another command.
I am trying to set up some of the weapons to have an 'attack ground' command. This would mostly be used for blast weapons, allowing them to keep pounding on one specific area.
The weapon should behave like a normal weapon, but I want to be able to re-target the weapon to fire at a specific location on the ground off a button. I would guess the closest example is raynor/tychus's shredder grenade from the campaign, but I need to modify it to work with whatever weapons the unit is currently using. I also need it to fire at that spot continuously until the unit is given another command.
What is the best way to go about doing this?
Make your ability create an invisible dummy neutral unit at a target point, and then use an issue order effect to have your unit attack the dummy.
Give the dummy a timed life of 10 seconds or so with a damage response that refreshes the timed life behavior to stop these dummies from accumulating.
Questions.
1) How do I set up said damage response? I don't know what to look for.
2) What are the best flags to use for this dummy unit to make sure it doesn't interfere with other units on the map?