• 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.

Sight radius

Status
Not open for further replies.
I heard here is a way you can do it by abusing the ultra-vision upgrade but I can not remember how, sorry, maybe someone else knows?

Thanks, I'll see if I can figure it out.

Technically, you can, by using "tricks" such as creating dummies over at the edge of 1800 sight range of a specified unit.
But I'm afraid the vision would not be a perfect circle - vision collision.

Could work, but I don't want to get too complicated with the triggers.
 
Last edited by a moderator:
Level 10
Joined
Mar 17, 2012
Messages
582
every 0.1 seconds of a game time
create dummy at position of your hero
add dummy ability Reveal that has radius you need (set Reveal no effect and last 0.1 second)
issue order targeting point orc far seer reveal

:grin:
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
every 0.1 seconds of a game time
create dummy at position of your hero
add dummy ability Reveal that has radius you need (set Reveal no effect and last 0.1 second)
issue order targeting point orc far seer reveal

:grin:

Well, that will also reveal invisible units unless you changed it in Object Editor, but why would you do that? If you can just create a dummy unit then change its sight radius.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set unit = Blood Mage 0000 <gen>
      • Set point = (Position of unit)
      • Visibility - Create an initially Enabled visibility modifier for (Owner of unit) emitting Visibility from point to a radius of 2500.00
      • Set fogMods[(Custom value of unit)] = (Last created visibility modifier)
      • Unit Group - Add unit to fogGroup
      • Custom script: call RemoveLocation(udg_point)
      • Custom script: set udg_point = null
  • Untitled Trigger 002
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in fogGroup and do (Actions)
        • Loop - Actions
          • Set unit = (Picked unit)
          • Set integer = (Custom value of unit)
          • Set point = (Position of unit)
          • Visibility - Destroy fogMods[integer]
          • Visibility - Create an initially Enabled visibility modifier for (Owner of unit) emitting Visibility from point to a radius of 2500.00
          • Set fogMods[(Custom value of unit)] = (Last created visibility modifier)
          • Custom script: call RemoveLocation(udg_point)
          • Custom script: set udg_point = null

I don't recommend using this for all units in map as it might start to lag. If you only use it for heroes then it is ok.

Also check if the unit is dead and stuff like that.
 

Attachments

  • Visibility.w3x
    21 KB · Views: 144
Level 10
Joined
Mar 17, 2012
Messages
582

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set unit = Blood Mage 0000 <gen>
      • Set point = (Position of unit)
      • Visibility - Create an initially Enabled visibility modifier for (Owner of unit) emitting Visibility from point to a radius of 2500.00
      • Set fogMods[(Custom value of unit)] = (Last created visibility modifier)
      • Unit Group - Add unit to fogGroup
      • Custom script: call RemoveLocation(udg_point)
      • Custom script: set udg_point = null
  • Untitled Trigger 002
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in fogGroup and do (Actions)
        • Loop - Actions
          • Set unit = (Picked unit)
          • Set integer = (Custom value of unit)
          • Set point = (Position of unit)
          • Visibility - Destroy fogMods[integer]
          • Visibility - Create an initially Enabled visibility modifier for (Owner of unit) emitting Visibility from point to a radius of 2500.00
          • Set fogMods[(Custom value of unit)] = (Last created visibility modifier)
          • Custom script: call RemoveLocation(udg_point)
          • Custom script: set udg_point = null

I don't recommend using this for all units in map as it might start to lag. If you only use it for heroes then it is ok.

Also check if the unit is dead and stuff like that.

:thumbs_up:
 
Level 17
Joined
Nov 13, 2006
Messages
1,814

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set unit = Blood Mage 0000 <gen>
      • Set point = (Position of unit)
      • Visibility - Create an initially Enabled visibility modifier for (Owner of unit) emitting Visibility from point to a radius of 2500.00
      • Set fogMods[(Custom value of unit)] = (Last created visibility modifier)
      • Unit Group - Add unit to fogGroup
      • Custom script: call RemoveLocation(udg_point)
      • Custom script: set udg_point = null
  • Untitled Trigger 002
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in fogGroup and do (Actions)
        • Loop - Actions
          • Set unit = (Picked unit)
          • Set integer = (Custom value of unit)
          • Set point = (Position of unit)
          • Visibility - Destroy fogMods[integer]
          • Visibility - Create an initially Enabled visibility modifier for (Owner of unit) emitting Visibility from point to a radius of 2500.00
          • Set fogMods[(Custom value of unit)] = (Last created visibility modifier)
          • Custom script: call RemoveLocation(udg_point)
          • Custom script: set udg_point = null

I don't recommend using this for all units in map as it might start to lag. If you only use it for heroes then it is ok.

Also check if the unit is dead and stuff like that.

why visibility stay on map center? i tryed with 500 range and work well on unit but also stay a visibility modifier at center of map
 
It is Posible!
Go into Game Interface and Increase it !
Or go Trigers And Code that will reveal the arena around the unit by the number you will configurate!

:vw_wtf: I've searched through the whole game interface and it doesn't even contain integers. On the other side I could find no actions that has something to do with 'unit sight radius'.
 
Level 8
Joined
Jul 18, 2012
Messages
136
Make Exacly Like This Around the Map! That its the only way. (Make Dummies (invisible) to increase the unit vision renge)).
y7GSc.jpg
 
Last edited by a moderator:
Status
Not open for further replies.
Top