s3rius
Linux is only free if your time is worthless.
- Reaction score
- 130
I am in need of a condition that tells me whether a unit is visible to a certain player.
I've found the boolean condition IsUnitVisible, but that doesn't tell me whether the unit is in the sight range of a player, but only whether it's in the acquisition range of that certain player's units.
So, when I have a unit that has a sight range of 1000 and a acquisition range of 200, then IsUnitVisible will only be true when it's closer than 200. But I want it to be at 1000. (changing acquisition range is not an option, unfortunately).
Thanks to any helpers.
Edit: I've also tried IsUnitFogged. But that strangely also uses acquisition range, not sight range ~.~
I've found the boolean condition IsUnitVisible, but that doesn't tell me whether the unit is in the sight range of a player, but only whether it's in the acquisition range of that certain player's units.
So, when I have a unit that has a sight range of 1000 and a acquisition range of 200, then IsUnitVisible will only be true when it's closer than 200. But I want it to be at 1000. (changing acquisition range is not an option, unfortunately).
Thanks to any helpers.
Edit: I've also tried IsUnitFogged. But that strangely also uses acquisition range, not sight range ~.~