ROTS19
TH.net Regular
- Reaction score
- 12
Is there a way to change a unit's vision field to make it a cone facing the same direction as a unit?
Did someone managed to solve this problem?
I'd like to know how you did it.
The only way I was able to change a unit's vision pattern is by adding a
behavior of type buff that periodically activates a persistent effect,
that is periodical too and that activates a number of persistent effects
that spawn visibility with XY offset infront of the unit.
In other words I created a behavior that creates 3 well placed circles
of visibility with 3 radius in front of the unit every 0.04 seconds, that
last 0.04 seconds, and it looks like if the unit can see only what's in
front of it.
Of course I had to set the unit's sight range to 2.
If someone has a better solution please share.
I couldn't make the thing with the detection work....
The unit still had 360 degrees vision...
no matter the arc