I have an aura that gives health to any unit in range.
The aura is attached to a neutral unit (non player owned)
However problems of:
a) The range is big but will only use the effect if it can "see" the unit.
b) It applies to all units in range, sadly this means resources and things that I dont want it to effect.
So is there a way to add exceptions (as in players) i.e. all units of player 0 .
As I'd rather not have to trigger the aura.
And the sight thing is really annoying I want to have sight blockers and low unit vision but it seems most abilities require sight to work.
I'm not sure if unchecking Neutral from search filters would do the trick, (aura is on neutral player, and 'normal' players are neutral towards him, but resources which belong to same neutral are regarded player units). You'd need to toy around with search area and apply behavior (if that's what you're using). If you want to exclude player 0, you need to create and add validator to one of those, that validates if player controller != neutral.
I have an aura that gives health to any unit in range.
The aura is attached to a neutral unit (non player owned)
However problems of:
a) The range is big but will only use the effect if it can "see" the unit.
b) It applies to all units in range, sadly this means resources and things that I dont want it to effect.
So is there a way to add exceptions (as in players) i.e. all units of player 0 .
As I'd rather not have to trigger the aura.
And the sight thing is really annoying I want to have sight blockers and low unit vision but it seems most abilities require sight to work.
You tried removing Neutral allowed from the search area filter? Also just give the building some line of sight so it can see your junk.
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
I'm not sure if unchecking Neutral from search filters would do the trick, (aura is on neutral player, and 'normal' players are neutral towards him, but resources which belong to same neutral are regarded player units). You'd need to toy around with search area and apply behavior (if that's what you're using). If you want to exclude player 0, you need to create and add validator to one of those, that validates if player controller != neutral.
you can use validators....
if possible you only want it to heal "heros" you can set a validator so that it only effects units with the "hero flag" set true
For the vision thing, you can find a flag in your effects that says Requires Vision. Uncheck this to make it affect units in shroud.
In the ability it's unchecked but I couldn't find it anywhere else.
I have no idea how the validators work, requirements make sense but I've no idea how to make them work, could you explain how I'd achieve this?
Ok I fixed the problems.
Firstly in the Effect Search I gave the following search filters
Search - Search Filters Excluded: Structure, Resource (Harvestable), Invulnerable
And for the line of sight problem on the unit I changed it's vision height and it now works.
Unit - Vision Height 4