As the title says i would like to now where to set if the ability automatically selects a target if the cursor is close to it.
The snipe of the Ghost for example does this ( you don't have to click exactly on the target to hit it) the psy storm of the high templar does not (since it has splash) but both are of the type effect target, so there must be a way to change this.
The snipe of the Ghost for example does this ( you don't have to click exactly on the target to hit it)
Are you sure? I just tested it, and I need to click exactly on a unit; otherwise I get a "Must target Unit" error message.
You could, however, target a point with the ability and use a search effect with maximum count of 1 and target sort TSDistance (so it picks the nearest target). Then you would only need to check, if there is no unit in the area; either by using a minimum target count for the search effect, or, if this field does not work the way I would expect, use an enum area validator.
As the title says i would like to now where to set if the ability automatically selects a target if the cursor is close to it. The snipe of the Ghost for example does this ( you don't have to click exactly on the target to hit it) the psy storm of the high templar does not (since it has splash) but both are of the type effect target, so there must be a way to change this.
Are you sure? I just tested it, and I need to click exactly on a unit; otherwise I get a "Must target Unit" error message.
You could, however, target a point with the ability and use a search effect with maximum count of 1 and target sort TSDistance (so it picks the nearest target). Then you would only need to check, if there is no unit in the area; either by using a minimum target count for the search effect, or, if this field does not work the way I would expect, use an enum area validator.
@Kueken531: Go Thank you for your help, I solved the problem.