So I have a hero with a rotating turret and model attached to the turret so that it turns when it moves and fires. It has an attack target priority ability which uses target searches on the weapon effect. (I use a search area effect with a maximum of 1 find and the range of the weapon) This is necessary to use the target sorts and set it to a behavior type.
Anyway the issue is with cloaked units. I don't want the unit to be able to attack cloaked units, but obviously visible ones. The problem is setting the search filters in the target to exclude "Cloaked" units also excludes them even when they are made visible by detectors.
The only real solution is to take off cloaked units from the search filters. But now the unit can attack cloaked units regardless of whether they are detected or not.
This is sort of a complex situation.
So I have a hero with a rotating turret and model attached to the turret so that it turns when it moves and fires. It has an attack target priority ability which uses target searches on the weapon effect. (I use a search area effect with a maximum of 1 find and the range of the weapon) This is necessary to use the target sorts and set it to a behavior type.
Anyway the issue is with cloaked units. I don't want the unit to be able to attack cloaked units, but obviously visible ones. The problem is setting the search filters in the target to exclude "Cloaked" units also excludes them even when they are made visible by detectors.
The only real solution is to take off cloaked units from the search filters. But now the unit can attack cloaked units regardless of whether they are detected or not.
Try cloaked as allowed and the Visible flag as required.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Well now I feel like an idiot!
So solved?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Yes! sorry about late response!