• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How can I get unit sight radius?

Status
Not open for further replies.
Level 11
Joined
May 16, 2016
Messages
730
Is there a way to get the value of the unit's sight radius? something like "set temp_integer = unit's sight radius + 100"
Variant 1: Use item ability of Goblin Scope add and remove the Goblin Scope abilities with different values of sight bonus.
Pros: No periodic events: Cons: You have to make a lot of abilities. Custom base causes increased loading time
Variant 2: If you use fixed value of sight then you can set point value of unit equals to the sight radius.
 
Status
Not open for further replies.
Top