so I want to make a buff that gives vision of the target unit for the casting player as long as the buff is on the unit, now I made this simple by just checking the share vision flag, what I want to know is if I can set the vision radius to the casting player, like, as long as the buff is on the casting player can only see 2 radius around the unit even if the unit's vision is 5 radius
also just wondering, does the share vision flag only share it to the casting player or to all players?
Maybe I'm wrong, but when I did this it was impossible to set a custom radius.
So I created a persistent effect that periodically launched a Reveal effect on the unit, just like Terran scans but with a very small radius and with Detect unchecked.
Edit: should only share with casting player and his allies that share vision with him, maybe flags on the effect can change this? If not you could make it reveal for all players by using triggers.
Persistent effects have fields to create a (beat) "persistent" AoE revealer with a fixed radius. This can be tied to a unit by making the effect occur at a Unit type target, but can also be made to occur on empty ground. Unlike the "Share Vision" flag it will not cause targeted detector units to share their detection capability, and including this in the presence of "blinding" abilities is quite some work.
Check the Oracle's Revelation ability, it does exactly what you want.